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