maybe this will fix it
This commit is contained in:
parent
15631e6bd3
commit
4cf2505e50
1 changed files with 3 additions and 3 deletions
|
@ -123,14 +123,14 @@ function Volume() {
|
|||
|
||||
function BatteryLabel() {
|
||||
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0)
|
||||
const icon = battery.bind("percent").as(p =>
|
||||
`battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
||||
// const icon = battery.bind("percent").as(p =>
|
||||
// `battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
||||
|
||||
return Widget.Box({
|
||||
class_name: "battery",
|
||||
visible: battery.bind("available"),
|
||||
children: [
|
||||
Widget.Icon({ icon }),
|
||||
// Widget.Icon({ icon }),
|
||||
Widget.LevelBar({
|
||||
widthRequest: 140,
|
||||
vpack: "center",
|
||||
|
|
Loading…
Reference in a new issue