Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2008-07-28 20:36:36 (GMT)
committer Martin Dengler <martin@martindengler.com>2008-07-29 13:37:35 (GMT)
commit0fc3b4c0799cca8c6b9f27dffa6233c5128a63fe (patch)
treefce7cbed71402bca4ab9025f12e5999fa8d8a97f
parent5336a0f98d16e776865cdebe9677193758d010c4 (diff)
#7248 speaker icon fullness more intuitive
The speaker icon's "fullness" is now more intuitive in the same way as the battery icon's in #4208: the icon fullness is chosen by finding the closest icon starting from the current level going *down* to zero. For example: rather than, given four icons of -000, -033, -066, and -100 percent "fullness", the -100 icon being chosen if the speaker volume level was 67, the -066 icon would be chosen. This "underestimates" the volume, which has been identified as more intuitive. |TestCase| Set the volume to less than 100%. The icon should not be full.
-rw-r--r--src/view/devices/speaker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/devices/speaker.py b/src/view/devices/speaker.py
index f785940..df4995c 100644
--- a/src/view/devices/speaker.py
+++ b/src/view/devices/speaker.py
@@ -61,7 +61,7 @@ class DeviceView(TrayIcon):
xo_color = XoColor('%s,%s' % (style.COLOR_WHITE.get_svg(),
style.COLOR_WHITE.get_svg()))
- self.icon.props.icon_name = get_icon_state(name, current_level, step=1)
+ self.icon.props.icon_name = get_icon_state(name, current_level, step=-1)
self.icon.props.xo_color = xo_color
def __expose_event_cb(self, *args):