Hauptmenü

FTUI version 3

Begonnen von Bunnu, 25 Oktober 2020, 09:25:41

Vorheriges Thema - Nächstes Thema

meier81

Guten Morgen,

ich habe heute morgen mal meine ftui3 Testseite aktualisiert und dort nun das Problem das die Einfärbung meiner Messwerte mit "step" nicht mehr funktioniert. Diese sind nun allesamt blau. Mein Quelltext lautet aktuell so:

<ftui-column width="20%">
<ftui-label size="1em" [text]="{{device}}:temperature" [color]="{{device}}:temperature | step('-20:blue, 19:info, 23:yellow, 26:red')"><span class="size--1" slot="unit">°C</span></ftui-label>
  </ftui-column>

Hat da jemand das gleiche Verhalten bzw. einen Tipp?

LG Markus
QNAP NAS mit Debian VM, darauf FHEM, debmatic, influxdb2 und Grafana || HB-RF-ETH || WS980 Wetterstation || Xiaomi Mi Robot mit valetudo-FW || Buderus web KM100 || div. Tasmota-Devices || mehrere Homematic-IP und Homematic-Devices

setstate

ich habe das nachgetestet, mit [color]="{{device}}:temperature | step('-20:blue, 19:info, 23:yellow, 26:red')" - funktioniert bei mir  :o

meier81

Hallo setstate,

danke für deine Info. Ich habe jetzt mal weiter geschaut und es liegt an der Änderung vom 25.04.2026 an der ‎"www/ftui/styles/colors.css":

[color="info"] {
  --color-base: var(--info-color);
  --color-contrast: var(--info-contrast-color);
}

Ohne diese Definition ist bei mir die Farbe "info" grau wie die normale Schrift, mir der Definition wird die Schrift bei mir blau. Habe auch bemerkt das es ein anderer Blauton ist wie die Definition "blue".
QNAP NAS mit Debian VM, darauf FHEM, debmatic, influxdb2 und Grafana || HB-RF-ETH || WS980 Wetterstation || Xiaomi Mi Robot mit valetudo-FW || Buderus web KM100 || div. Tasmota-Devices || mehrere Homematic-IP und Homematic-Devices

meier81

Zitat von: meier81 am 01 Mai 2026, 14:15:04Hallo setstate,

danke für deine Info. Ich habe jetzt mal weiter geschaut und es liegt an der Änderung vom 25.04.2026 an der ‎"www/ftui/styles/colors.css":

[color="info"] {
  --color-base: var(--info-color);
  --color-contrast: var(--info-contrast-color);
}

Ohne diese Definition ist bei mir die Farbe "info" grau wie die normale Schrift, mir der Definition wird die Schrift bei mir blau. Habe auch bemerkt das es ein anderer Blauton ist wie die Definition "blue".

Hab das Problem jetzt so gelöst das ich von der Definition "info" auf "light" umgestiegen bin, jetzt ist alles wieder so wie es sein soll und zwar hellgrau.

LG Markus
QNAP NAS mit Debian VM, darauf FHEM, debmatic, influxdb2 und Grafana || HB-RF-ETH || WS980 Wetterstation || Xiaomi Mi Robot mit valetudo-FW || Buderus web KM100 || div. Tasmota-Devices || mehrere Homematic-IP und Homematic-Devices