aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index fb29d52..b40189b 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -617,11 +617,13 @@ public class VolumeControl : Object
/* Choose an icon */
string icon = "audio-volume-muted";
- if (volume > 0.0 && volume <= 0.33)
+ if (volume <= 0.0)
+ icon = "audio-volume-muted";
+ else if (volume <= 0.3)
icon = "audio-volume-low";
- if (volume > 0.33 && volume <= 0.66)
+ else if (volume <= 0.7)
icon = "audio-volume-medium";
- if (volume > 0.66 && volume <= 1.0)
+ else
icon = "audio-volume-high";
/* Choose a sound */