Mercurial > libervia-desktop-kivy
comparison cagou/kv/common.kv @ 247:cf61a011f731
core (notes), common (symbol): added an icon showing note level:
because of Symbol binding, it was difficult to precisely set the icon position, so Symbol has been modified to remove bindings.
Added consts for INFO, WARNING and ERROR colors.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Jan 2019 20:24:48 +0100 |
parents | 30be583dbabc |
children | ba7b8cb7ddcd |
comparison
equal
deleted
inserted
replaced
246:15e47bbb192c | 247:cf61a011f731 |
---|---|
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 width: dp(35) |
51 height: dp(35) | |
51 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf') | 52 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf') |
52 text_size: self.size | 53 text_size: self.size |
53 font_size: self.width - self.margin | 54 font_size: dp(30) |
54 margin: dp(5) | |
55 halign: 'center' | 55 halign: 'center' |
56 valign: 'middle' | 56 valign: 'middle' |
57 bg_color: 0, 0, 0, 0 | 57 bg_color: 0, 0, 0, 0 |
58 canvas.before: | 58 canvas.before: |
59 Color: | 59 Color: |
83 bold: root.bold | 83 bold: root.bold |
84 | 84 |
85 <ActionSymbol>: | 85 <ActionSymbol>: |
86 bg_color: 0, 0, 0, 0 | 86 bg_color: 0, 0, 0, 0 |
87 color: app.c_sec_light | 87 color: app.c_sec_light |
88 margin: dp(10) |