aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-15 08:38:43 -0500
committerTed Gould <ted@gould.cx>2014-10-15 08:38:43 -0500
commit46c7d4c1cb1a6552ba205beaf233d66dcd4fc8a7 (patch)
treed2317978f3bf051ab3e3b9933ac3284fd638f2fe
parent33998ab08618bb6d513f91b2d49685ede072432b (diff)
downloadayatana-indicator-sound-46c7d4c1cb1a6552ba205beaf233d66dcd4fc8a7.tar.gz
ayatana-indicator-sound-46c7d4c1cb1a6552ba205beaf233d66dcd4fc8a7.tar.bz2
ayatana-indicator-sound-46c7d4c1cb1a6552ba205beaf233d66dcd4fc8a7.zip
Make volume icons match the panel icons
-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 d666708..f6f54d2 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -618,11 +618,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 */