ags fix volume

This commit is contained in:
Sakooooo 2024-09-05 07:16:17 +04:00
parent 96e2ee14e3
commit 3b5fdcb31e
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -115,9 +115,10 @@ function Volume() {
const volume = Widget.Label({
// label: Math.round(audio.speaker.volume * 100).toString(),
label: !audio.speaker.is_muted
? ` ${Math.round(audio.speaker.volume * 100).toString()}`
: "",
// label: !audio.speaker.is_muted
// ? ` ${Math.round(audio.speaker.volume * 100).toString()}`
// : "",
label: audio.speaker.bind("volume").as((x) => `${Math.round(x * 100)}%`)
})
return Widget.Box({