Add battery icon back

This commit is contained in:
Jas-SinghFSU
2024-07-01 19:50:16 -07:00
parent 8f54a92e80
commit 135cb20be4

View File

@@ -17,12 +17,15 @@ const BatteryLabel = () => {
class_name: "battery",
visible: battery.bind("available"),
children: [
// Widget.Icon({ icon }),
Widget.LevelBar({
widthRequest: 20,
vpack: "center",
value,
}),
Widget.Icon({ icon }),
Widget.Label({
label: battery.bind("percent").as((p) => (`${p}%`)),
})
// Widget.LevelBar({
// widthRequest: 20,
// vpack: "center",
// value,
// }),
],
}),
isVis,