mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
update adjustments and ui (#384)
* update
* update
* testit
* Revert "testit"
This reverts commit b1cc645161.
* update schema
* update
* add adjustment to serverinfo
* remove Adjustbool
* remove v4l2only
* fix json check for create effect
* update deb
* update
* update remote adjust
* update
* add eff schemas
This commit is contained in:
@@ -434,7 +434,7 @@ void JsonConnection::setAdjustment(
|
||||
red.append(redAdjustment.red());
|
||||
red.append(redAdjustment.green());
|
||||
red.append(redAdjustment.blue());
|
||||
adjust["redAdjust"] = red;
|
||||
adjust["red"] = red;
|
||||
}
|
||||
|
||||
if (greenAdjustment.isValid())
|
||||
@@ -443,7 +443,7 @@ void JsonConnection::setAdjustment(
|
||||
green.append(greenAdjustment.red());
|
||||
green.append(greenAdjustment.green());
|
||||
green.append(greenAdjustment.blue());
|
||||
adjust["greenAdjust"] = green;
|
||||
adjust["green"] = green;
|
||||
}
|
||||
|
||||
if (blueAdjustment.isValid())
|
||||
@@ -452,7 +452,7 @@ void JsonConnection::setAdjustment(
|
||||
blue.append(blueAdjustment.red());
|
||||
blue.append(blueAdjustment.green());
|
||||
blue.append(blueAdjustment.blue());
|
||||
adjust["blueAdjust"] = blue;
|
||||
adjust["blue"] = blue;
|
||||
}
|
||||
if (cyanAdjustment.isValid())
|
||||
{
|
||||
@@ -460,7 +460,7 @@ void JsonConnection::setAdjustment(
|
||||
cyan.append(cyanAdjustment.red());
|
||||
cyan.append(cyanAdjustment.green());
|
||||
cyan.append(cyanAdjustment.blue());
|
||||
adjust["cyanAdjust"] = cyan;
|
||||
adjust["cyan"] = cyan;
|
||||
}
|
||||
if (magentaAdjustment.isValid())
|
||||
{
|
||||
@@ -468,7 +468,7 @@ void JsonConnection::setAdjustment(
|
||||
magenta.append(magentaAdjustment.red());
|
||||
magenta.append(magentaAdjustment.green());
|
||||
magenta.append(magentaAdjustment.blue());
|
||||
adjust["magentaAdjust"] = magenta;
|
||||
adjust["magenta"] = magenta;
|
||||
}
|
||||
if (yellowAdjustment.isValid())
|
||||
{
|
||||
@@ -476,7 +476,7 @@ void JsonConnection::setAdjustment(
|
||||
yellow.append(yellowAdjustment.red());
|
||||
yellow.append(yellowAdjustment.green());
|
||||
yellow.append(yellowAdjustment.blue());
|
||||
adjust["yellowAdjust"] = yellow;
|
||||
adjust["yellow"] = yellow;
|
||||
}
|
||||
if (whiteAdjustment.isValid())
|
||||
{
|
||||
@@ -484,7 +484,7 @@ void JsonConnection::setAdjustment(
|
||||
white.append(whiteAdjustment.red());
|
||||
white.append(whiteAdjustment.green());
|
||||
white.append(whiteAdjustment.blue());
|
||||
adjust["whiteAdjust"] = white;
|
||||
adjust["white"] = white;
|
||||
}
|
||||
if (blackAdjustment.isValid())
|
||||
{
|
||||
@@ -492,7 +492,7 @@ void JsonConnection::setAdjustment(
|
||||
black.append(blackAdjustment.red());
|
||||
black.append(blackAdjustment.green());
|
||||
black.append(blackAdjustment.blue());
|
||||
adjust["blackAdjust"] = black;
|
||||
adjust["black"] = black;
|
||||
}
|
||||
if (brightnessMin != nullptr)
|
||||
{
|
||||
@@ -504,15 +504,15 @@ void JsonConnection::setAdjustment(
|
||||
}
|
||||
if (gammaR != nullptr)
|
||||
{
|
||||
adjust["gammaR"] = *gammaR;
|
||||
adjust["gammaRed"] = *gammaR;
|
||||
}
|
||||
if (gammaG != nullptr)
|
||||
{
|
||||
adjust["gammaG"] = *gammaG;
|
||||
adjust["gammaGreen"] = *gammaG;
|
||||
}
|
||||
if (gammaB != nullptr)
|
||||
{
|
||||
adjust["gammaB"] = *gammaB;
|
||||
adjust["gammaBlue"] = *gammaB;
|
||||
}
|
||||
|
||||
command["adjustment"] = adjust;
|
||||
|
||||
Reference in New Issue
Block a user