Add battery icon back
This commit is contained in:
@@ -17,12 +17,15 @@ const BatteryLabel = () => {
|
|||||||
class_name: "battery",
|
class_name: "battery",
|
||||||
visible: battery.bind("available"),
|
visible: battery.bind("available"),
|
||||||
children: [
|
children: [
|
||||||
// Widget.Icon({ icon }),
|
Widget.Icon({ icon }),
|
||||||
Widget.LevelBar({
|
Widget.Label({
|
||||||
widthRequest: 20,
|
label: battery.bind("percent").as((p) => (`${p}%`)),
|
||||||
vpack: "center",
|
})
|
||||||
value,
|
// Widget.LevelBar({
|
||||||
}),
|
// widthRequest: 20,
|
||||||
|
// vpack: "center",
|
||||||
|
// value,
|
||||||
|
// }),
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
isVis,
|
isVis,
|
||||||
|
|||||||
Reference in New Issue
Block a user