changeset 320:922935ebfdd5

Use the palette loaded from the config theme
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 14:26:15 +0200
parents ec84b522c94b
children 6e72a6b5e94f
files getan/controller.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/controller.py	Fri Oct 11 14:25:36 2013 +0200
+++ b/getan/controller.py	Fri Oct 11 14:26:15 2013 +0200
@@ -40,8 +40,9 @@
         self.state = PausedProjectsState(self, self.project_view)
 
     def main(self):
+        theme = self.config.get_theme()
         self.loop = urwid.MainLoop(self.view,
-                                   self.view.get_palette(),
+                                   theme.get_palette(),
                                    screen=urwid.raw_display.Screen(),
                                    input_filter=self.input_filter)
         self.loop.run()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)