Eww battery gauge
This commit is contained in:
@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user