mirror of https://github.com/arendst/Tasmota.git
ESP32 show colorful background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525
This commit is contained in:
parent
b4a54ae880
commit
70a082c8e5
|
@ -6,7 +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 LGBT background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525
|
||||
- ESP32 show colorful background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525
|
||||
|
||||
### Breaking Changed
|
||||
|
||||
|
|
|
@ -140,7 +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 LGBT background if ``WebColor2`` bit0 is not set. Bit0 is default set using #252525
|
||||
- ESP32 show colorful 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)
|
||||
|
|
|
@ -247,7 +247,7 @@ const char HTTP_HEAD_STYLE3[] PROGMEM =
|
|||
|
||||
"</head>"
|
||||
"<body>"
|
||||
"<div style='text-align:left;display:inline-block;color:#%06x;min-width:340px;'>" // COLOR_TEXT
|
||||
"<div style='background:#%06x;text-align:left;display:inline-block;color:#%06x;min-width:340px;'>" // COLOR_BACKGROUND, COLOR_TEXT
|
||||
#ifdef FIRMWARE_MINIMAL
|
||||
#ifdef FIRMWARE_SAFEBOOT
|
||||
"<span style='text-align:center;color:#%06x;'><h3>" D_SAFEBOOT "</h3></span>" // COLOR_TEXT_WARNING
|
||||
|
@ -902,12 +902,12 @@ void WSContentSendStyle_P(const char* formatP, ...) {
|
|||
}
|
||||
|
||||
#if defined(ESP32) || (LANGUAGE_LCID == 1049)
|
||||
if (0 == (WebColor(COL_BACKGROUND) & 1)) { // Show LGBT background if WebColor2 bit0 is not set
|
||||
if (0 == (WebColor(COL_BACKGROUND) & 1)) { // Show colorful 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),
|
||||
WSContentSend_P(HTTP_HEAD_STYLE3, WebColor(COL_BACKGROUND), WebColor(COL_TEXT),
|
||||
#ifdef FIRMWARE_MINIMAL
|
||||
WebColor(COL_TEXT_WARNING),
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue