Mercurial > libervia-desktop-kivy
changeset 176:2cfef8fbfd4e
core: moved main colors to constants
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 May 2018 16:54:42 +0200 |
parents | d65a51fa00b9 |
children | 9835cafbd909 |
files | cagou/core/cagou_main.py cagou/core/constants.py |
diffstat | 2 files changed, 13 insertions(+), 6 deletions(-) [+] |
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
--- 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]