Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home/HomeBox.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-23 16:08:37 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-23 16:08:37 (GMT)
commita2e5b9308e08637afc3eeb3bd9a6b0634e1b7fe1 (patch)
tree6c946b47fef417bda65d018c04f8faf2914debce /shell/view/home/HomeBox.py
parent97e64751cccc3f31dedbd184afc049daf0301afc (diff)
Rename color property in CanvasIcon to xo-color and added properties fill-color and stroke-color.
Diffstat (limited to 'shell/view/home/HomeBox.py')
-rw-r--r--shell/view/home/HomeBox.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/view/home/HomeBox.py b/shell/view/home/HomeBox.py
index 0d5f999..a7936cf 100644
--- a/shell/view/home/HomeBox.py
+++ b/shell/view/home/HomeBox.py
@@ -19,6 +19,7 @@ import math
import hippo
from sugar.graphics import units
+from sugar.graphics import color
from sugar.graphics.xocolor import XoColor
from view.home.activitiesdonut import ActivitiesDonut
@@ -59,7 +60,11 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
if self._donut:
self.remove(self._donut)
self._donut = None
- self._my_icon.props.color = XoColor('insensitive')
+ self._my_icon.props.stroke_color = color.BUTTON_INACTIVE
+ self._my_icon.props.fill_color = \
+ color.BUTTON_INACTIVE_BACKGROUND
+ self._my_icon.props.background_color = \
+ color.BUTTON_INACTIVE_BACKGROUND
def do_allocate(self, width, height, origin_changed):
hippo.CanvasBox.do_allocate(self, width, height, origin_changed)