Tasmota/tasmota/html_uncompressed/HTTP_HEAD_STYLE_WIFI.h
SteWers ec6e1dd2a6
Optimize WiFi strength indicator (#23924)
* Optimize WiFi strength indicator

- Simplify `WifiGetRssiAsQuality`
- Make WiFi strength indicator in web status line color independent
- Correct count of visible bars in strength indicator
- Save flash space (64 bytes; with WiFi status line 80 bytes)
- Highlight connected SSID/AP in settings with compiler option `USE_HIGHLIGHT_CONNECTED_AP` (needs additional 256 bytes)

* Change format of RSSI display
2025-09-21 15:26:03 +02:00

10 lines
428 B
C

const char HTTP_HEAD_STYLE_WIFI[] PROGMEM =
".wifi{width:18px;height:12px;position:relative}"
".arc{padding:0;position:absolute;border:2px solid transparent;border-radius:50%;border-top-color:var(--c_txt)}"
".a0{width:2px;height:3px;top:9px;left:8px}"
".a1{width:6px;height:6px;top:6px;left:6px}"
".a2{width:12px;height:12px;top:3px;left:3px}"
".a3{width:18px;height:18px;top:0px;left:0px}"
".o30{opacity:.3}"
;