[Getan-commits] [PATCH 27 of 32] Remove old and now unused palette

Wald Commits scm-commit at wald.intevation.org
Fri Oct 11 14:34:11 CEST 2013


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381494694 -7200
# Node ID 014ce022076369a3ab05b117c2eaff45cd4413ab
# Parent  6e72a6b5e94f5e1cfc6c3b765ab3eac4a4624ee8
Remove old and now unused palette

diff -r 6e72a6b5e94f -r 014ce0220763 getan/view.py
--- a/getan/view.py	Fri Oct 11 14:28:21 2013 +0200
+++ b/getan/view.py	Fri Oct 11 14:31:34 2013 +0200
@@ -292,30 +292,6 @@
 
 class GetanView(urwid.WidgetWrap):
 
-    palette = [
-        ('header',               'white',  'dark blue'),
-        ('project_header',       'white',  'dark cyan'),
-        ('entry_header',         'white',  'dark cyan'),
-        ('footer',               'yellow', 'dark blue'),
-        ('entry_footer',         'white',  'dark blue'),
-        ('project_footer',       'white',  'dark blue'),
-        ('project_key',          'black',  'dark cyan'),
-        ('body',                 'white',  'black'),
-        ('entry body',           'white',  'dark blue'),
-        ('entries',              'white',  'black'),
-        ('entry_body',           'white',  'dark blue'),
-        ('focused entry',        'white',  'dark cyan'),
-        ('selected entry',       'yellow', 'light cyan'),
-        ('selected focus entry', 'yellow', 'dark cyan'),
-        ('info',                 'white',  'dark red'),
-        ('focus',                'white',  'dark blue'),
-        ('selected',             'black',  'light green'),
-        ('selected focus',       'yellow', 'dark cyan'),
-        ('question',             'white',  'dark red'),
-        ('running',              'yellow', 'dark green'),
-        ('paused_running',       'white',  'dark red'),
-    ]
-
     def __init__(self, controller, proj_list, entr_list):
         encoding = locale.getpreferredencoding()
         urwid.set_encoding(encoding)
@@ -353,9 +329,6 @@
             logger.debug("GetanView: set footer text: '%s'" % text)
             self.frame.set_footer(urwid.AttrWrap(urwid.Text(text), attr))
 
-    def get_palette(self):
-        return self.palette
-
     def keypress(self, size, key):
         self.controller.state.keypress(size, key)
 


More information about the Getan-commits mailing list