This commit is contained in:
Sakooooo 2024-08-05 15:51:34 +04:00
parent 8340b516d7
commit c60a14b873
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

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