Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/style.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-09 13:09:59 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-09 13:09:59 (GMT)
commit40ed24f0fe1d34198c105a4c1396282e244fbba9 (patch)
tree136d7eaf50c22905b8ae337f4b69dc3ee6a177b3 /sugar/graphics/style.py
parent376cb911747aba631098e495b86b78265ee4879c (diff)
Fix tab label padding
Diffstat (limited to 'sugar/graphics/style.py')
-rw-r--r--sugar/graphics/style.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/graphics/style.py b/sugar/graphics/style.py
index cab2cbd..b26ca56 100644
--- a/sugar/graphics/style.py
+++ b/sugar/graphics/style.py
@@ -43,6 +43,7 @@ class Font(object):
return pango.FontDescription(self._desc)
_FOCUS_LINE_WIDTH = 2
+_TAB_CURVATURE = 1
ZOOM_FACTOR = _compute_zoom_factor()
@@ -53,3 +54,5 @@ FONT_BOLD = Font('Bitstream Vera Sans bold %d' % FONT_SIZE)
TOOLBOX_SEPARATOR_HEIGHT = _zoom(9)
TOOLBOX_HORIZONTAL_PADDING = _zoom(75)
TOOLBOX_TAB_VBORDER = int((_zoom(36) - FONT_SIZE - _FOCUS_LINE_WIDTH) / 2)
+TOOLBOX_TAB_HBORDER = _zoom(15) - _FOCUS_LINE_WIDTH - _TAB_CURVATURE
+TOOLBOX_TAB_LABEL_WIDTH = _zoom(150 - 15 * 2)