Remove several hardcoded sizes, substitute them with stylesheets.
parent
b3abf30dec
commit
250060b7f8
@ -1,10 +1,8 @@
|
||||
from sugar.graphics.canvasicon import CanvasIcon
|
||||
from sugar.graphics.iconcolor import IconColor
|
||||
import conf
|
||||
|
||||
class MyIcon(CanvasIcon):
|
||||
def __init__(self, size):
|
||||
def __init__(self):
|
||||
profile = conf.get_profile()
|
||||
|
||||
CanvasIcon.__init__(self, icon_name='stock-buddy',
|
||||
color=profile.get_color(), size=size)
|
||||
color=profile.get_color())
|
||||
|
Loading…
Reference in New Issue