diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-07-31 14:46:06 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-07-31 14:46:06 (GMT) |
commit | b3f7e0e63241b8e4ea3f20924627578a9ddd136e (patch) | |
tree | 236632517d6b9ca72f1fb2807c5f9ad2c1e669d3 /sugar/graphics/style.py | |
parent | 72d66793a73a3ca7924b09badb5d269b41d649a3 (diff) |
Move from scaling to sizes in CanvasIcon.
Diffstat (limited to 'sugar/graphics/style.py')
-rw-r--r-- | sugar/graphics/style.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sugar/graphics/style.py b/sugar/graphics/style.py index 80d6688..55b4a4b 100644 --- a/sugar/graphics/style.py +++ b/sugar/graphics/style.py @@ -93,6 +93,12 @@ DEFAULT_PADDING = zoom(6) GRID_CELL_SIZE = zoom(75) LINE_WIDTH = zoom(2) +STANDARD_ICON_SIZE = zoom(55) +SMALL_ICON_SIZE = zoom(55 * 0.5) +MEDIUM_ICON_SIZE = zoom(55 * 1.5) +LARGE_ICON_SIZE = zoom(55 * 2.0) +XLARGE_ICON_SIZE = zoom(55 * 2.75) + FONT_SIZE = zoom(7 * _XO_DPI / _get_screen_dpi()) FONT_NORMAL = Font('Bitstream Vera Sans %d' % FONT_SIZE) FONT_BOLD = Font('Bitstream Vera Sans bold %d' % FONT_SIZE) |