diff libervia/desktop_kivy/core/cagou_main.py @ 518:196483685a63 default tip

Use Font-Awesome instead of Fontello, following change in Libervia Media.
author Goffi <goffi@goffi.org>
date Sat, 26 Oct 2024 22:44:37 +0200
parents 2ff26b4273df
children
line wrap: on
line diff
--- a/libervia/desktop_kivy/core/cagou_main.py	Sat Jul 13 13:08:13 2024 +0200
+++ b/libervia/desktop_kivy/core/cagou_main.py	Sat Oct 26 22:44:37 2024 +0200
@@ -138,6 +138,11 @@
                                       options=list(C.XMLUI_DATA_LVLS))
     symbol = properties.StringProperty()
     action = properties.ObjectProperty()
+    level2symbol = {
+        C.XMLUI_DATA_LVL_INFO: "circle-info",
+        C.XMLUI_DATA_LVL_WARNING: "triangle-exclamation",
+        C.XMLUI_DATA_LVL_ERROR: "circle-exclamation"
+    }
 
     def on_press(self):
         if self.action is not None: