diff cagou/core/constants.py @ 247:cf61a011f731

core (notes), common (symbol): added an icon showing note level: because of Symbol binding, it was difficult to precisely set the icon position, so Symbol has been modified to remove bindings. Added consts for INFO, WARNING and ERROR colors.
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2019 20:24:48 +0100
parents d11df7793399
children 7d5297984191
line wrap: on
line diff
--- a/cagou/core/constants.py	Fri Jan 04 13:20:29 2019 +0100
+++ b/cagou/core/constants.py	Sat Jan 26 20:24:48 2019 +0100
@@ -34,9 +34,14 @@
     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]
+    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)
+
+    COLOR_INFO = COLOR_PRIM_LIGHT
+    COLOR_WARNING = (1.0, 1.0, 0.0, 1)
+    COLOR_ERROR = (1.0, 0.0, 0.0, 1)
+