Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/__init__.py
blob: 8bfa7eb59e53bfa0d938b065d43ee2542f584472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gtk

from sugar.graphics import style
from sugar.canvas.IconColor import IconColor

if gtk.gdk.screen_width() == 1200:
	_medium_icon_size = 75
else:
	_medium_icon_size = 50

_stylesheet = {
	'color' : IconColor('white'),
	'size'  : _medium_icon_size
}
style.register_stylesheet('frame-activity-icon', _stylesheet)

_stylesheet = {
	'size'  : _medium_icon_size
}
style.register_stylesheet('frame-zoom-icon', _stylesheet)