ahh
This commit is contained in:
parent
bf36e2f93b
commit
a050bfba79
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ function Volume() {
|
||||||
|
|
||||||
|
|
||||||
function BatteryLabel() {
|
function BatteryLabel() {
|
||||||
const value = battery.bind("percent");
|
const value = battery.bind("precent").transform((v) => v.toFixed(0));
|
||||||
// const icon = battery.bind("percent").as(p =>
|
// const icon = battery.bind("percent").as(p =>
|
||||||
// `battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
// `battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ function BatteryLabel() {
|
||||||
children: [
|
children: [
|
||||||
// Widget.Icon({ icon }),
|
// Widget.Icon({ icon }),
|
||||||
Widget.Label({
|
Widget.Label({
|
||||||
label: value.toString(),
|
label: value,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue