Get rid of stylesheets for MyIcon.
This commit is contained in:
parent
d199e99514
commit
e24193c551
@ -20,7 +20,7 @@ import hippo
|
||||
import gobject
|
||||
|
||||
from sugar.graphics.spreadbox import SpreadBox
|
||||
from sugar.graphics import style
|
||||
from sugar.graphics import units
|
||||
from view.home.MyIcon import MyIcon
|
||||
from view.home.FriendView import FriendView
|
||||
|
||||
@ -33,8 +33,7 @@ class FriendsBox(SpreadBox, hippo.CanvasItem):
|
||||
self._menu_shell = menu_shell
|
||||
self._friends = {}
|
||||
|
||||
self._my_icon = MyIcon()
|
||||
style.apply_stylesheet(self._my_icon, 'friends.MyIcon')
|
||||
self._my_icon = MyIcon(units.LARGE_ICON_SCALE)
|
||||
self.append(self._my_icon, hippo.PACK_FIXED)
|
||||
|
||||
friends = self._shell.get_model().get_friends()
|
||||
|
@ -19,7 +19,6 @@ import hippo
|
||||
from view.home.activitiesdonut import ActivitiesDonut
|
||||
from view.home.MyIcon import MyIcon
|
||||
from model.ShellModel import ShellModel
|
||||
from sugar.graphics import style
|
||||
from sugar.graphics import units
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
|
||||
@ -34,8 +33,7 @@ class HomeBox(hippo.CanvasBox, hippo.CanvasItem):
|
||||
box_height=units.grid_to_pixels(7))
|
||||
self.append(self._donut)
|
||||
|
||||
self._my_icon = MyIcon()
|
||||
style.apply_stylesheet(self._my_icon, 'home.MyIcon')
|
||||
self._my_icon = MyIcon(units.XLARGE_ICON_SCALE)
|
||||
self.append(self._my_icon, hippo.PACK_FIXED)
|
||||
|
||||
shell.get_model().connect('notify::state',
|
||||
|
@ -18,6 +18,7 @@ from sugar.graphics.canvasicon import CanvasIcon
|
||||
from sugar import profile
|
||||
|
||||
class MyIcon(CanvasIcon):
|
||||
def __init__(self):
|
||||
CanvasIcon.__init__(self, icon_name='theme:stock-buddy',
|
||||
def __init__(self, scale):
|
||||
CanvasIcon.__init__(self, scale=scale,
|
||||
icon_name='theme:stock-buddy',
|
||||
color=profile.get_color())
|
||||
|
@ -35,18 +35,10 @@ frame_BuddyIcon = {
|
||||
'scale' : style.standard_icon_scale
|
||||
}
|
||||
|
||||
home_MyIcon = {
|
||||
'scale' : style.xlarge_icon_scale
|
||||
}
|
||||
|
||||
ring_ActivityIcon = {
|
||||
'scale' : style.medium_icon_scale
|
||||
}
|
||||
|
||||
friends_MyIcon = {
|
||||
'scale' : style.large_icon_scale
|
||||
}
|
||||
|
||||
friends_FriendIcon = {
|
||||
'scale' : style.large_icon_scale
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user