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:
authorDan Winship <dwinship@redhat.com>2007-08-08 22:19:05 (GMT)
committer Dan Winship <dwinship@redhat.com>2007-08-08 22:19:05 (GMT)
commit985fe6ef358ce28d7d04f199d9a342f4a4fe0a79 (patch)
treee50cf7b89225cf8d7420ee366c123b673410fd06 /sugar/graphics/style.py
parenta1302ccbb287b95be0e5f1e0b50c08fca0dc597d (diff)
Make activity icons in frame outline-only. #2668
Diffstat (limited to 'sugar/graphics/style.py')
-rw-r--r--sugar/graphics/style.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sugar/graphics/style.py b/sugar/graphics/style.py
index 55b4a4b..a5186da 100644
--- a/sugar/graphics/style.py
+++ b/sugar/graphics/style.py
@@ -81,6 +81,12 @@ class Color(object):
return (r, g, b)
+ def get_svg(self):
+ if self._a == 0.0:
+ return 'none'
+ else:
+ return self.get_html()
+
_XO_DPI = 200.0
_FOCUS_LINE_WIDTH = 2
@@ -113,6 +119,7 @@ TOOLBOX_TAB_LABEL_WIDTH = zoom(150 - 15 * 2)
COLOR_BLACK = Color('#000000')
COLOR_WHITE = Color('#FFFFFF')
+COLOR_TRANSPARENT = Color('#FFFFFF', alpha=0.0)
COLOR_PANEL_GREY = Color('#C0C0C0')
COLOR_SELECTION_GREY = Color('#A6A6A6')
COLOR_INACTIVE_FILL = Color('#9D9FA1')