From 297381cad771c3ac9c728ae784e8ea9c325184c4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 11 Jan 2007 10:20:08 +0000 Subject: Basic implementation of the shutdown graphics --- (limited to 'sugar') diff --git a/sugar/env.py b/sugar/env.py index 09511f4..14d8d70 100644 --- a/sugar/env.py +++ b/sugar/env.py @@ -30,6 +30,12 @@ def get_bundle_path(): else: return None +def is_emulator(): + if os.environ.has_key('SUGAR_EMULATOR'): + if os.environ['SUGAR_EMULATOR'] == 'yes': + return True + return False + def get_bundle_service_name(): if os.environ.has_key('SUGAR_BUNDLE_SERVICE_NAME'): return os.environ['SUGAR_BUNDLE_SERVICE_NAME'] diff --git a/sugar/graphics/iconcolor.py b/sugar/graphics/iconcolor.py index 71dfe18..e880582 100644 --- a/sugar/graphics/iconcolor.py +++ b/sugar/graphics/iconcolor.py @@ -22,6 +22,8 @@ from sugar.graphics.colors import colors def _parse_string(color_string): if color_string == 'white': return ['#ffffff', '#414141'] + elif color_string == 'insensitive': + return ['#ffffff', '#e2e2e2'] splitted = color_string.split(',') if len(splitted) == 2: -- cgit v0.9.1