Mercurial > libervia-desktop-kivy
annotate cagou/kv/common.kv @ 181:9d7a9866b495
core: use secondary color for main menu highlight
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 May 2018 20:50:55 +0200 |
parents | 11ff8cd93659 |
children | 284cb5c467b0 |
rev | line source |
---|---|
107 | 1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client |
126 | 2 # Copyright (C) 2016-2018 Jérôme Poisson (goffi@goffi.org) |
107 | 3 |
4 # This program is free software: you can redistribute it and/or modify | |
5 # it under the terms of the GNU Affero General Public License as published by | |
6 # the Free Software Foundation, either version 3 of the License, or | |
7 # (at your option) any later version. | |
8 | |
9 # This program is distributed in the hope that it will be useful, | |
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 # GNU Affero General Public License for more details. | |
13 | |
14 # You should have received a copy of the GNU Affero General Public License | |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 | |
145
654b00fa3fdc
core (common): renamed JidWidget to JidItem to avoid name conflict with XMLUI
Goffi <goffi@goffi.org>
parents:
134
diff
changeset
|
18 <JidItem>: |
107 | 19 size_hint: None, None |
20 height: dp(70) | |
21 canvas.before: | |
22 Color: | |
23 rgba: 0.2, 0.2, 0.2, 1 | |
24 Rectangle: | |
25 pos: self.pos | |
26 size: self.size | |
27 Image: | |
28 source: root.getImage(self) | |
29 size_hint: None, None | |
30 size: dp(64), dp(64) | |
31 Label: | |
150
a12fda5d9aa9
core (common): use white for labels in JidItem
Goffi <goffi@goffi.org>
parents:
145
diff
changeset
|
32 color: 1, 1, 1, 1 |
107 | 33 bold: True |
34 text: root.jid | |
35 text_size: self.size | |
36 halign: 'left' | |
37 valign: 'middle' | |
38 padding_x: dp(20) | |
131
36fc269e2a32
core: changed default background color to white
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
39 |
36fc269e2a32
core: changed default background color to white
Goffi <goffi@goffi.org>
parents:
126
diff
changeset
|
40 |
134 | 41 <Symbol>: |
42 font_name: app.expand('{media}/fonts/fontello/font/fontello.ttf') | |
43 text_size: self.size | |
44 font_size: self.width - self.margin | |
45 margin: dp(5) | |
46 halign: 'center' | |
47 valign: 'middle' | |
48 bg_color: 1, 1, 1, 1 | |
49 canvas.before: | |
50 Color: | |
51 rgba: self.bg_color | |
52 Rectangle: | |
53 pos: self.pos | |
54 size: self.size | |
178
11ff8cd93659
common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents:
150
diff
changeset
|
55 |
11ff8cd93659
common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents:
150
diff
changeset
|
56 <ActionSymbol>: |
11ff8cd93659
common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents:
150
diff
changeset
|
57 bg_color: 0, 0, 0, 0 |
11ff8cd93659
common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents:
150
diff
changeset
|
58 color: app.c_sec_light |
11ff8cd93659
common: new ActionSymbol widget, which use a symbol to show an action
Goffi <goffi@goffi.org>
parents:
150
diff
changeset
|
59 margin: dp(10) |