# HG changeset patch # User Goffi # Date 1525186482 -7200 # Node ID 2cfef8fbfd4e8f684956460d3751e52ea221b87d # Parent d65a51fa00b963e98ad5db3f40bac91a6abd54be core: moved main colors to constants diff -r d65a51fa00b9 -r 2cfef8fbfd4e cagou/core/cagou_main.py --- 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 diff -r d65a51fa00b9 -r 2cfef8fbfd4e cagou/core/constants.py --- a/cagou/core/constants.py Mon Apr 30 07:57:37 2018 +0200 +++ b/cagou/core/constants.py Tue May 01 16:54:42 2018 +0200 @@ -33,3 +33,10 @@ TRANSFER_UPLOAD = u"upload" TRANSFER_SEND = u"send" + + COLOR_PRIM = [0.98,0.98,0.98,1] + COLOR_PRIM_LIGHT = [1, 1, 1, 1] + COLOR_PRIM_DARK = [0.78,0.78,0.78,1] + COLOR_SEC = [0.27,0.54,1.0,1] + COLOR_SEC_LIGHT = [0.51,0.73,1.0,1] + COLOR_SEC_DARK = [0.0,0.37,0.8,1]