1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Use volume_mute icon for volume==0 (#1150)

This commit is contained in:
Aaron Tulino
2025-12-25 09:31:05 -07:00
committed by GitHub
parent 6303304a10
commit df6c60213f
6 changed files with 21 additions and 9 deletions

View File

@@ -42,8 +42,10 @@ Row {
let volume = defaultSink.audio.volume;
let muted = defaultSink.audio.muted;
if (muted || volume === 0.0)
if (muted)
return "volume_off";
if (volume === 0.0)
return "volume_mute";
if (volume <= 0.33)
return "volume_down";
if (volume <= 0.66)