diff cagou/kv/common.kv @ 215:254481ba2bae

core (common): set width = height by default for Symbol + use a transparent background color by default
author Goffi <goffi@goffi.org>
date Sun, 24 Jun 2018 22:02:30 +0200
parents 284cb5c467b0
children 30be583dbabc
line wrap: on
line diff
--- a/cagou/kv/common.kv	Fri May 25 15:54:50 2018 +0200
+++ b/cagou/kv/common.kv	Sun Jun 24 22:02:30 2018 +0200
@@ -47,13 +47,14 @@
             size: self.size
 
 <Symbol>:
+    width: self.height
     font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf')
     text_size: self.size
     font_size: self.width - self.margin
     margin: dp(5)
     halign: 'center'
     valign: 'middle'
-    bg_color: 1, 1, 1, 1
+    bg_color: 0, 0, 0, 0
     canvas.before:
         Color:
             rgba: self.bg_color