[Getan-commits] [PATCH 25 of 32] Use the palette loaded from the config theme

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


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1381494375 -7200
# Node ID 922935ebfdd51762cc61fa02ffc84893e7fa6aee
# Parent  ec84b522c94b057a9a393c560abb23658743447a
Use the palette loaded from the config theme

diff -r ec84b522c94b -r 922935ebfdd5 getan/controller.py
--- 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()


More information about the Getan-commits mailing list