Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPlan Ceibal <comunidad@plan.ceibal.edu.uy>2010-11-01 17:39:05 (GMT)
committer Anish Mangal <anish@activitycentral.com>2012-04-27 10:04:45 (GMT)
commit9e453ad0c3249e2491b7397408c49d1252de8063 (patch)
treeb4b96c388c3ffc1222da7a8562f4c9f66f005325
parent4c1c97564fe8c7cd9973ae56d2a27975c89ffeb3 (diff)
Add support for using high-contrast GTK Sugar theme
[added description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
-rw-r--r--src/sugar/graphics/style.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sugar/graphics/style.py b/src/sugar/graphics/style.py
index 7f48d9a..f081bb7 100644
--- a/src/sugar/graphics/style.py
+++ b/src/sugar/graphics/style.py
@@ -1,4 +1,5 @@
# Copyright (C) 2007, Red Hat, Inc.
+# Copyright (C) 2010, Plan Ceibal <comunidad@plan.ceibal.edu.uy>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -116,6 +117,7 @@ LARGE_ICON_SIZE = zoom(55 * 2.0)
XLARGE_ICON_SIZE = zoom(55 * 2.75)
client = gconf.client_get_default()
+THEME = client.get_string('/desktop/sugar/interface/gtk_theme')
FONT_SIZE = client.get_float('/desktop/sugar/font/default_size')
FONT_FACE = client.get_string('/desktop/sugar/font/default_face')
@@ -141,6 +143,12 @@ COLOR_INACTIVE_FILL = Color('#9D9FA1')
COLOR_INACTIVE_STROKE = Color('#757575')
COLOR_TEXT_FIELD_GREY = Color('#E5E5E5')
COLOR_HIGHLIGHT = Color('#E7E7E7')
+if (THEME == 'sugar-contrast'):
+ COLOR_DESKTOP_ICON = Color('#000033')
+ COLOR_BG_CP = Color('#000033')
+else:
+ COLOR_DESKTOP_ICON = Color('#808080')
+ COLOR_BG_CP = Color('#FFFFFF')
PALETTE_CURSOR_DISTANCE = zoom(10)