diff cagou/core/cagou_main.py @ 176:2cfef8fbfd4e

core: moved main colors to constants
author Goffi <goffi@goffi.org>
date Tue, 01 May 2018 16:54:42 +0200
parents 620f69e4e378
children c63922860f80
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Mon Apr 30 07:57:37 2018 +0200
+++ b/cagou/core/cagou_main.py	Tue May 01 16:54:42 2018 +0200
@@ -227,12 +227,12 @@
 
 class CagouApp(App):
     """Kivy App for Cagou"""
-    c_prim = properties.ListProperty([0.98,0.98,0.98,1])
-    c_prim_light = properties.ListProperty([1, 1, 1, 1])
-    c_prim_dark = properties.ListProperty([0.78,0.78,0.78,1])
-    c_sec = properties.ListProperty([0.27,0.54,1.0,1])
-    c_sec_light = properties.ListProperty([0.51,0.73,1.0,1])
-    c_sec_dark = properties.ListProperty([0.0,0.37,0.8,1])
+    c_prim = properties.ListProperty(C.COLOR_PRIM)
+    c_prim_light = properties.ListProperty(C.COLOR_PRIM_LIGHT)
+    c_prim_dark = properties.ListProperty(C.COLOR_PRIM_DARK)
+    c_sec = properties.ListProperty(C.COLOR_SEC)
+    c_sec_light = properties.ListProperty(C.COLOR_SEC_LIGHT)
+    c_sec_dark = properties.ListProperty(C.COLOR_SEC_DARK)
 
     def _install_settings_keys(self, window):
         # we don't want default Kivy's behaviour of displaying