diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c67485c..fc77ba7f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. ## [13.2.0.3] ### Added - DeepSleep support through TIMERS (#20117) +- ESP32 show LHBT background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525 ### Breaking Changed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index c00fdff44..232e99cb8 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -140,6 +140,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm - DeepSleep support through TIMERS [#20117](https://github.com/arendst/Tasmota/issues/20117) - Support for ESP32-C2 and ESP32-C6 using Arduino core v3 - ESP32 core v3 auto TasConsole USB or Serial connection by @staars +- ESP32 show LHBT background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525 - ESP32 Partition Wizard can be loaded dynamically [#19980](https://github.com/arendst/Tasmota/issues/19980) - ESP32 support for Avago Tech Bluetooth Buttons [#20088](https://github.com/arendst/Tasmota/issues/20088) - Berry ``debug.gcdebug()`` to enable GC debugging [#19936](https://github.com/arendst/Tasmota/issues/19936) diff --git a/tasmota/tasmota_support/settings.ino b/tasmota/tasmota_support/settings.ino index 196bf2364..136b04a33 100644 --- a/tasmota/tasmota_support/settings.ino +++ b/tasmota/tasmota_support/settings.ino @@ -1762,6 +1762,11 @@ void SettingsDelta(void) { if (Settings->version < 0x0D000003) { // 13.0.0.3 Settings->battery_level_percent = 101; } +#if (LANGUAGE_LCID == 1049) + if (Settings->version < 0x0D020003) { // 13.2.0.3 + Settings->web_color[1][2] &= 0xFE; // Reset WebColor2 bit0 once. Fix by user setting WebColor2 bit0 (like #252525) + } +#endif Settings->version = TASMOTA_VERSION; SettingsSave(1); diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index a890dae17..3d6178364 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -900,6 +900,13 @@ void WSContentSendStyle_P(const char* formatP, ...) { _WSContentSendBuffer(false, formatP, arg); va_end(arg); } + +#if defined(ESP32) || (LANGUAGE_LCID == 1049) + if (0 == (WebColor(COL_BACKGROUND) & 1)) { // Show LHBT background if WebColor2 bit0 is not set + WSContentSend_P(PSTR("body{background:linear-gradient(#FF0018 7%%,#FFA52C,#FFFF41,#008018,#0000F9,#86007D 93%%);background-repeat:no-repeat;background-attachment:fixed;background-size:cover;}")); + } +#endif + WSContentSend_P(HTTP_HEAD_STYLE3, WebColor(COL_TEXT), #ifdef FIRMWARE_MINIMAL WebColor(COL_TEXT_WARNING),