diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-27 10:18:30 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-27 10:18:30 (GMT) |
commit | 42d0085b0b0940f4d0730912cfe38971b1ba5a04 (patch) | |
tree | e8f6072eed508f26bc419f3a58accef9aeb628fc /shell/view/devices/battery.py | |
parent | 14d51cc3818272ce79931d3e225eba0a46fc3816 (diff) |
Use xo color for mesh and battery devices.
Diffstat (limited to 'shell/view/devices/battery.py')
-rw-r--r-- | shell/view/devices/battery.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/view/devices/battery.py b/shell/view/devices/battery.py index ec971a5..8ba9aec 100644 --- a/shell/view/devices/battery.py +++ b/shell/view/devices/battery.py @@ -14,9 +14,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +from gettext import gettext as _ + import gtk -from gettext import gettext as _ +from sugar import profile from sugar.graphics.icon import CanvasIcon from sugar.graphics.icon import get_icon_state from sugar.graphics import style @@ -30,7 +32,8 @@ _STATUS_FULLY_CHARGED = 2 class DeviceView(CanvasIcon): def __init__(self, model): - CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE) + CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE, + xo_color=profile.get_color()) self._model = model self._palette = BatteryPalette(_('My Battery life')) self.set_palette(self._palette) |