diff cagou/plugins/plugin_wid_widget_selector.kv @ 179:7177fe2d9725

common: new ActionIcon widget which display symbol or image icon according to what is specified in plugin_info
author Goffi <goffi@goffi.org>
date Tue, 01 May 2018 20:48:48 +0200
parents 6a288d4a493f
children 1b835bcfa663
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_widget_selector.kv	Tue May 01 18:28:22 2018 +0200
+++ b/cagou/plugins/plugin_wid_widget_selector.kv	Tue May 01 20:48:48 2018 +0200
@@ -23,11 +23,10 @@
         id: item
         size_hint: None, 1
         spacing: dp(10)
-        Image:
-            source: root.plugin_info["icon_medium"]
-            allow_stretch: True
-            keep_ratio: True
+        ActionIcon:
+            plugin_info: root.plugin_info
             size_hint: None, 1
+            width: self.height
         Label:
             text: root.plugin_info["name"]
             bold: True