Adjust low battery icon threshold to 20%
This commit is contained in:
parent
6063c23e28
commit
6322e0f4ac
|
|
@ -24,7 +24,7 @@ const speakerIcon = Variable.derive(
|
|||
[bind(speaker, "volume"), bind(speaker, "mute")],
|
||||
(volume, mute) => {
|
||||
if (mute || volume <= 0.01) return "audio-volume-muted-symbolic"
|
||||
if (volume < 0.33) return "audio-volume-low-symbolic"
|
||||
if (volume < 0.20) return "audio-volume-low-symbolic"
|
||||
if (volume < 0.66) return "audio-volume-medium-symbolic"
|
||||
return "audio-volume-high-symbolic"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue