diff options
Diffstat (limited to 'shell/view/stylesheet.py')
-rw-r--r-- | shell/view/stylesheet.py | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/shell/view/stylesheet.py b/shell/view/stylesheet.py index 02f19f3..7e99c3c 100644 --- a/shell/view/stylesheet.py +++ b/shell/view/stylesheet.py @@ -2,20 +2,35 @@ import gtk from sugar.graphics.iconcolor import IconColor -if gtk.gdk.screen_width() == 1200: - _medium_icon_size = 75 -else: - _medium_icon_size = 50 +_screen_factor = gtk.gdk.screen_width() / 1200.0 + +_standard_icon_size = int(75.0 * _screen_factor) +_small_icon_size = _standard_icon_size * 0.5 +_medium_icon_size = _standard_icon_size * 1.5 +_large_icon_size = _standard_icon_size * 2.0 +_xlarge_icon_size = _standard_icon_size * 3.0 frame_ActivityIcon = { 'color' : IconColor('white'), + 'size' : _standard_icon_size +} + +ring_ActivityIcon = { 'size' : _medium_icon_size } frame_ZoomIcon = { - 'size' : _medium_icon_size + 'size' : _standard_icon_size } menu_ActionIcon = { - 'size' : _medium_icon_size + 'size' : _standard_icon_size +} + +home_MyIcon = { + 'size' : _xlarge_icon_size +} + +friends_MyIcon = { + 'size' : _large_icon_size } |