comparison 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
comparison
equal deleted inserted replaced
214:6a98d70a3a66 215:254481ba2bae
45 Rectangle: 45 Rectangle:
46 pos: self.pos 46 pos: self.pos
47 size: self.size 47 size: self.size
48 48
49 <Symbol>: 49 <Symbol>:
50 width: self.height
50 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf') 51 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf')
51 text_size: self.size 52 text_size: self.size
52 font_size: self.width - self.margin 53 font_size: self.width - self.margin
53 margin: dp(5) 54 margin: dp(5)
54 halign: 'center' 55 halign: 'center'
55 valign: 'middle' 56 valign: 'middle'
56 bg_color: 1, 1, 1, 1 57 bg_color: 0, 0, 0, 0
57 canvas.before: 58 canvas.before:
58 Color: 59 Color:
59 rgba: self.bg_color 60 rgba: self.bg_color
60 Rectangle: 61 Rectangle:
61 pos: self.pos 62 pos: self.pos