ags fix volume
This commit is contained in:
parent
96e2ee14e3
commit
3b5fdcb31e
|
@ -115,9 +115,10 @@ function Volume() {
|
||||||
|
|
||||||
const volume = Widget.Label({
|
const volume = Widget.Label({
|
||||||
// label: Math.round(audio.speaker.volume * 100).toString(),
|
// label: Math.round(audio.speaker.volume * 100).toString(),
|
||||||
label: !audio.speaker.is_muted
|
// label: !audio.speaker.is_muted
|
||||||
? ` ${Math.round(audio.speaker.volume * 100).toString()}`
|
// ? ` ${Math.round(audio.speaker.volume * 100).toString()}`
|
||||||
: "",
|
// : "",
|
||||||
|
label: audio.speaker.bind("volume").as((x) => `${Math.round(x * 100)}%`)
|
||||||
})
|
})
|
||||||
|
|
||||||
return Widget.Box({
|
return Widget.Box({
|
||||||
|
|
Loading…
Reference in a new issue