changeset 410:2a58f3d756ad

common: use light secondary colour instead of red for notification labels' background
author Goffi <goffi@goffi.org>
date Sat, 22 Feb 2020 18:28:47 +0100
parents 2caea63ae2ab
children b018386653c2
files cagou/kv/common.kv
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/kv/common.kv	Wed Feb 19 09:49:21 2020 +0100
+++ b/cagou/kv/common.kv	Sat Feb 22 18:28:47 2020 +0100
@@ -16,7 +16,7 @@
 
 
 <NotifLabel>:
-    background_color: 1, 0, 0, 1
+    background_color: app.c_sec_light
     size_hint: None, None
     text_size: None, root.height
     padding_x: sp(5)
@@ -24,7 +24,9 @@
     bold: True
     canvas.before:
         Color:
-            rgba: root.background_color
+            # self.background_color doesn't seem initialized correctly on startup
+            # (maybe a Kivy bug? to be checked), thus we use the "or" below
+            rgb: self.background_color or app.c_sec_light
         Ellipse:
             size: self.size
             pos: self.pos