changeset 178:11ff8cd93659

common: new ActionSymbol widget, which use a symbol to show an action
author Goffi <goffi@goffi.org>
date Tue, 01 May 2018 18:28:22 +0200
parents 9835cafbd909
children 7177fe2d9725
files cagou/core/common.py cagou/kv/common.kv
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/common.py	Tue May 01 16:55:51 2018 +0200
+++ b/cagou/core/common.py	Tue May 01 18:28:22 2018 +0200
@@ -79,3 +79,7 @@
 
 class SymbolButton(ButtonBehavior, Symbol):
     pass
+
+
+class ActionSymbol(Symbol):
+    pass
--- a/cagou/kv/common.kv	Tue May 01 16:55:51 2018 +0200
+++ b/cagou/kv/common.kv	Tue May 01 18:28:22 2018 +0200
@@ -52,3 +52,8 @@
         Rectangle:
             pos: self.pos
             size: self.size
+
+<ActionSymbol>:
+    bg_color: 0, 0, 0, 0
+    color: app.c_sec_light
+    margin: dp(10)