Eww battery gauge

This commit is contained in:
2024-05-12 23:19:31 +02:00
parent 517b4499e1
commit c887d19846
2 changed files with 12 additions and 2 deletions

View File

@ -121,6 +121,10 @@ scale trough {
color: red;
}
.battery-gauge {
color: $highlight1;
}
.calendar {
background: $lowlight2;
}

View File

@ -92,7 +92,7 @@
:class "battery thingy"
:visible {current_temp != ""}
(label :text "TMP")
(label :text "${current_temp / 1000}C")
(label :text "${current_temp / 1000}°")
))
(defwidget battery []
@ -101,7 +101,13 @@
:class "thingy"
:visible {current_battery != ""}
(label :text "BAT")
(label :text "${current_battery}%")
(circular-progress
:thickness 4.0
:value current_battery
:class "battery-gauge"
:style {current_battery < 15 ? "color: red;" : ""}
)
;(label :text "${current_battery}%")
))
(defwidget date []