From fd9971c20cba6e5b639a978df74d4c3cb6a7184e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 24 Nov 2019 12:59:55 +0100 Subject: [PATCH] Change GUI saturation from grey to white Change GUI saturation from grey to white --- tasmota/xdrv_01_webserver.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 2377bbd0d..0aae3c813 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -164,7 +164,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM = "}" #endif // USE_JAVASCRIPT_ES6 "function ld(v,p){" - "eb('s').style.backgroundImage='linear-gradient(to right,grey,hsl('+p+',100%%,50%%))';" + "eb('s').style.background='linear-gradient(to right,#fff,hsl('+p+',100%%,50%%))';" "la('&'+v+'='+p);" "}" @@ -1022,8 +1022,8 @@ void HandleRoot(void) LightGetHSB(&hue, &sat, &bri); WSContentSend_P(HTTP_MSG_SLIDER_HUE, hue); // Hue snprintf_P(stemp, sizeof(stemp), PSTR("#%02X%02X%02X"), Settings.light_color[0], Settings.light_color[1], Settings.light_color[2]); - // Saturation "s" related to eb('s').style.backgroundImage='linear-gradient(to right,grey,hsl('+p+',100%%,50%%))'; - WSContentSend_P(HTTP_MSG_SLIDER_GRADIENT, "s", "grey", stemp, 1, 100, changeUIntScale(sat, 0, 255, 0, 100), 'n'); + // Saturation "s" related to eb('s').style.background='linear-gradient(to right,#fff,hsl('+p+',100%%,50%%))'; + WSContentSend_P(HTTP_MSG_SLIDER_GRADIENT, "s", "#fff", stemp, 1, 100, changeUIntScale(sat, 0, 255, 0, 100), 'n'); } // Dark - Bright &d related to lb("d", value) and WebGetArg("d", tmp, sizeof(tmp)); WSContentSend_P(HTTP_MSG_SLIDER_GRADIENT, "b", "#000", "#fff", 1, 100, Settings.light_dimmer, 'd'); // Black to White