Rename color property in CanvasIcon to xo-color and added properties fill-color and stroke-color.

This commit is contained in:
Tomeu Vizoso
2007-02-23 17:08:37 +01:00
parent 97e64751cc
commit a2e5b9308e
15 changed files with 108 additions and 69 deletions
+1 -7
View File
@@ -31,12 +31,6 @@ class ActivityButton(IconButton):
self._activity = activity
self._popup_context = popup_context
def _mouse_motion_event_cb(self, item, event):
if event.detail == hippo.MOTION_DETAIL_ENTER:
self.set_property('color', self._prelight_color)
elif event.detail == hippo.MOTION_DETAIL_LEAVE:
self.set_property('color', self._normal_color)
def get_bundle_id(self):
return self._activity.get_service_name()
@@ -47,7 +41,7 @@ class InviteButton(IconButton):
def __init__(self, activity, invite):
IconButton.__init__(self, icon_name=activity.get_icon())
self.props.color = activity.get_color()
self.props.xo_color = activity.get_color()
self._invite = invite
def get_activity_id(self):
+1 -1
View File
@@ -48,7 +48,7 @@ class ActivityButton(IconButton):
icon_name = self._activity_model.get_icon_name()
icon_color = self._activity_model.get_icon_color()
IconButton.__init__(self, icon_name=icon_name, color=icon_color)
IconButton.__init__(self, icon_name=icon_name, xo_color=icon_color)
def get_popup(self):
menu = ActivityMenu(self._activity_model)