mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
fix coloradjustment via hyperion remote (#362)
* - fix coloradjustment via hyperion remote - several small cleanups/refactorings * fix color is shown as unknown in json serverinfo * fix active color is not shown when autoselect is reactivated
This commit is contained in:
@@ -478,6 +478,22 @@ void JsonConnection::setAdjustment(
|
||||
yellow.append(yellowAdjustment.blue());
|
||||
adjust["yellowAdjust"] = yellow;
|
||||
}
|
||||
if (whiteAdjustment.isValid())
|
||||
{
|
||||
QJsonArray white;
|
||||
white.append(whiteAdjustment.red());
|
||||
white.append(whiteAdjustment.green());
|
||||
white.append(whiteAdjustment.blue());
|
||||
adjust["whiteAdjust"] = white;
|
||||
}
|
||||
if (blackAdjustment.isValid())
|
||||
{
|
||||
QJsonArray black;
|
||||
black.append(blackAdjustment.red());
|
||||
black.append(blackAdjustment.green());
|
||||
black.append(blackAdjustment.blue());
|
||||
adjust["blackAdjust"] = black;
|
||||
}
|
||||
if (brightnessMin != nullptr)
|
||||
{
|
||||
adjust["brightnessMin"] = *brightnessMin;
|
||||
|
Reference in New Issue
Block a user