This commit is contained in:
Sakooooo 2024-08-05 05:36:11 +04:00
parent bf36e2f93b
commit a050bfba79
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -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,
}), }),
], ],
}) })