bugfix: make volume consistent with wpctl get-volume

This commit is contained in:
FUFSoB
2025-09-24 14:11:44 +05:00
parent fb64b3ba43
commit ef5447d2fa
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ Item {
icon: getIcon()
compact: (Settings.data.bar.density === "compact")
autoHide: false // Important to be false so we can hover as long as we want
text: Math.floor(AudioService.inputVolume * 100)
text: Math.round(AudioService.inputVolume * 100)
suffix: "%"
forceOpen: displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide"
+1 -1
View File
@@ -79,7 +79,7 @@ Item {
rightOpen: BarService.getPillDirection(root)
icon: getIcon()
autoHide: false // Important to be false so we can hover as long as we want
text: Math.floor(AudioService.volume * 100)
text: Math.round(AudioService.volume * 100)
suffix: "%"
forceOpen: displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide"