maybe this will fix it

This commit is contained in:
Sakooooo 2024-08-05 03:27:17 +04:00
parent 15631e6bd3
commit 4cf2505e50
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -123,14 +123,14 @@ function Volume() {
function BatteryLabel() { function BatteryLabel() {
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0) const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 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`)
return Widget.Box({ return Widget.Box({
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.LevelBar({
widthRequest: 140, widthRequest: 140,
vpack: "center", vpack: "center",