Mercurial > libervia-desktop-kivy
comparison src/cagou/kv/xmlui.kv @ 53:65775152aac1
xmlui: implemented most of XMLUI, not finished yet
most of XMLUI should be working now, some elements are still missing (notably TabsContainer), but they will be implemented soon.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Sep 2016 23:27:16 +0200 |
parents | |
children | 1922506846be |
comparison
equal
deleted
inserted
replaced
52:647f32d0a004 | 53:65775152aac1 |
---|---|
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client | |
2 # Copyright (C) 2016 Jérôme Poisson (goffi@goffi.org) | |
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 #:set common_height 30 | |
18 #:set button_height 50 | |
19 | |
20 <EmptyWidget,TextWidget,LabelWidget,JidWidget,StringWidget,JidInputWidget>: | |
21 size_hint: 1, None | |
22 height: dp(common_height) | |
23 | |
24 <ButtonWidget>: | |
25 size_hint: 1, None | |
26 height: dp(button_height) | |
27 | |
28 <BoolWidget>: | |
29 size_hint: 1, 1 | |
30 | |
31 <DividerWidget>: | |
32 size_hint: 1, None | |
33 height: dp(20) | |
34 canvas.before: | |
35 Color: | |
36 rgba: 1, 1, 1, 0.8 | |
37 Line | |
38 points: 0, dp(10), self.width, dp(10) | |
39 width: dp(3) | |
40 | |
41 <ListWidgetItem>: | |
42 size_hint_y: None | |
43 height: dp(button_height) | |
44 | |
45 <ListWidget>: | |
46 size_hint: 1, None | |
47 height: dp(button_height) | |
48 | |
49 <AdvancedListRow>: | |
50 canvas.before: | |
51 Color: | |
52 rgba: 1, 1, 1, 0.2 if self.global_index%2 else 0.1 | |
53 Rectangle: | |
54 pos: self.pos | |
55 size: self.size | |
56 size_hint: 1, None | |
57 height: self.minimum_height | |
58 rows: 1 | |
59 canvas.after: | |
60 Color: | |
61 rgba: 0, 0, 1, 0.5 if self.selected else 0 | |
62 Rectangle: | |
63 pos: self.pos | |
64 size: self.size | |
65 | |
66 <AdvancedListContainer>: | |
67 cols: 1 | |
68 size_hint: 1, None | |
69 height: self.minimum_height | |
70 | |
71 <VerticalContainer>: | |
72 cols: 1 | |
73 size_hint: 1, None | |
74 height: self.minimum_height | |
75 | |
76 <PairsContainer>: | |
77 cols: 2 | |
78 size_hint: 1, None | |
79 height: self.minimum_height | |
80 | |
81 <FormButton>: | |
82 size_hint: 1, None | |
83 height: dp(button_height) | |
84 | |
85 <XMLUIPanelGrid>: | |
86 cols: 1 | |
87 size_hint: 1, None | |
88 height: self.minimum_height |