Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-15 18:19:38 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-03-15 18:19:38 (GMT)
commitd001c70443007ef9a66ee89ab5c12f2519d409ac (patch)
treeed468a1edf49809054538d5aead53c9e42e9c38b /shell
parent9f5d642591ae21ce328b1ab322795352e0d85aaa (diff)
Tweaked sizes of home xo icon, donut radius and device icons.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/devices/battery.py3
-rw-r--r--shell/view/devices/wirelessnetwork.py3
-rw-r--r--shell/view/home/HomeBox.py6
3 files changed, 7 insertions, 5 deletions
diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py
index 56e3ffb..2047331 100644
--- a/shell/view/devices/battery.py
+++ b/shell/view/devices/battery.py
@@ -1,10 +1,11 @@
from sugar.graphics import canvasicon
+from sugar.graphics import units
_ICON_NAME = 'device-battery'
class DeviceView(canvasicon.CanvasIcon):
def __init__(self, model):
- canvasicon.CanvasIcon.__init__(self)
+ canvasicon.CanvasIcon.__init__(self, scale=units.MEDIUM_ICON_SCALE)
self._model = model
model.connect('notify::level', self._level_changed_cb)
diff --git a/shell/view/devices/wirelessnetwork.py b/shell/view/devices/wirelessnetwork.py
index d18fea0..2acb231 100644
--- a/shell/view/devices/wirelessnetwork.py
+++ b/shell/view/devices/wirelessnetwork.py
@@ -17,6 +17,7 @@
from sugar.graphics import canvasicon
from sugar.graphics import color
+from sugar.graphics import units
from model.devices import wirelessnetwork
from view.pulsingicon import PulsingIcon
@@ -24,7 +25,7 @@ _ICON_NAME = 'device-network-wireless'
class DeviceView(PulsingIcon):
def __init__(self, model):
- PulsingIcon.__init__(self)
+ PulsingIcon.__init__(self, scale=units.MEDIUM_ICON_SCALE)
self._model = model
model.connect('notify::name', self._name_changed_cb)
diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py
index e2483d2..86449c6 100644
--- a/shell/view/home/HomeBox.py
+++ b/shell/view/home/HomeBox.py
@@ -34,8 +34,8 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
hippo.CanvasBox.__init__(self, background_color=0xe2e2e2ff, yalign=2)
self._donut = ActivitiesDonut(shell,
- box_width=units.grid_to_pixels(7),
- box_height=units.grid_to_pixels(7))
+ box_width=units.grid_to_pixels(6),
+ box_height=units.grid_to_pixels(6))
self.append(self._donut)
self._my_icon = MyIcon(units.XLARGE_ICON_SCALE)
@@ -93,7 +93,7 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
i = 0
for icon in self._device_icons.values():
angle = 2 * math.pi / len(self._device_icons) * i + math.pi / 2
- radius = units.grid_to_pixels(5)
+ radius = units.grid_to_pixels(4)
[icon_width, icon_height] = icon.get_allocation()