Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-11 10:35:13 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-11 10:35:13 (GMT)
commitd59cd5af83dad1d6ff852f4601144c951df1920f (patch)
treeee37bdfd59bf432c57cc163dbe159a5a30d76113
parentdde018a63e4cd60cb983136b295653b3db195ebf (diff)
Fix intro colors
-rw-r--r--shell/intro/intro.py3
-rw-r--r--sugar/graphics/style.py5
2 files changed, 5 insertions, 3 deletions
diff --git a/shell/intro/intro.py b/shell/intro/intro.py
index 782a651..a307b91 100644
--- a/shell/intro/intro.py
+++ b/shell/intro/intro.py
@@ -111,7 +111,8 @@ class _IntroBox(hippo.CanvasBox):
PAGE_LAST = PAGE_COLOR
def __init__(self):
- hippo.CanvasBox.__init__(self, padding=style.zoom(30))
+ hippo.CanvasBox.__init__(self, padding=style.zoom(30),
+ background_color=_BACKGROUND_COLOR.get_int())
self._page = self.PAGE_NAME
self._name_page = _NamePage()
diff --git a/sugar/graphics/style.py b/sugar/graphics/style.py
index 1c82906..7363b7e 100644
--- a/sugar/graphics/style.py
+++ b/sugar/graphics/style.py
@@ -48,7 +48,7 @@ class Font(object):
return pango.FontDescription(self._desc)
class Color(object):
- def __init__(self, color, alpha=0):
+ def __init__(self, color, alpha=1.0):
self._r, self._g, self._b = self._html_to_rgb(color)
self._a = alpha
@@ -88,7 +88,7 @@ _TAB_CURVATURE = 1
ZOOM_FACTOR = _compute_zoom_factor()
-DEFAULT_SPACING = zoom(6)
+DEFAULT_SPACING = zoom(8)
FONT_SIZE = zoom(7 * _XO_DPI / _get_screen_dpi())
FONT_NORMAL = Font('Bitstream Vera Sans %d' % FONT_SIZE)
@@ -102,4 +102,5 @@ TOOLBOX_TAB_VBORDER = int((zoom(36) - FONT_NORMAL_H - _FOCUS_LINE_WIDTH) / 2)
TOOLBOX_TAB_HBORDER = zoom(15) - _FOCUS_LINE_WIDTH - _TAB_CURVATURE
TOOLBOX_TAB_LABEL_WIDTH = zoom(150 - 15 * 2)
+COLOR_WHITE = Color('#FFFFFF')
COLOR_PANEL_GREY = Color('#C0C0C0')