Eww battery gauge
This commit is contained in:
@ -121,6 +121,10 @@ scale trough {
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.battery-gauge {
|
||||||
|
color: $highlight1;
|
||||||
|
}
|
||||||
|
|
||||||
.calendar {
|
.calendar {
|
||||||
background: $lowlight2;
|
background: $lowlight2;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,7 +92,7 @@
|
|||||||
:class "battery thingy"
|
:class "battery thingy"
|
||||||
:visible {current_temp != ""}
|
:visible {current_temp != ""}
|
||||||
(label :text "TMP")
|
(label :text "TMP")
|
||||||
(label :text "${current_temp / 1000}C")
|
(label :text "${current_temp / 1000}°")
|
||||||
))
|
))
|
||||||
|
|
||||||
(defwidget battery []
|
(defwidget battery []
|
||||||
@ -101,7 +101,13 @@
|
|||||||
:class "thingy"
|
:class "thingy"
|
||||||
:visible {current_battery != ""}
|
:visible {current_battery != ""}
|
||||||
(label :text "BAT")
|
(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 []
|
(defwidget date []
|
||||||
|
|||||||
Reference in New Issue
Block a user