Mercurial > libervia-desktop-kivy
comparison cagou/kv/xmlui.kv @ 126:cd99f70ea592
global file reorganisation:
- follow common convention by puttin cagou in "cagou" instead of "src/cagou"
- added VERSION in cagou with current version
- updated dates
- moved main executable in /bin
- moved buildozer files in root directory
- temporary moved platform to assets/platform
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Apr 2018 17:11:21 +0200 |
parents | src/cagou/kv/xmlui.kv@f67b9baa81f0 |
children | 36fc269e2a32 |
comparison
equal
deleted
inserted
replaced
125:b6e6afb0dc46 | 126:cd99f70ea592 |
---|---|
1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client | |
2 # Copyright (C) 2016-2018 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,PasswordWidget,JidInputWidget>: | |
21 size_hint: 1, None | |
22 height: dp(common_height) | |
23 | |
24 | |
25 <ButtonWidget>: | |
26 size_hint: 1, None | |
27 height: dp(button_height) | |
28 | |
29 | |
30 <BoolWidget>: | |
31 size_hint: 1, 1 | |
32 | |
33 | |
34 <DividerWidget>: | |
35 size_hint: 1, None | |
36 height: dp(20) | |
37 canvas.before: | |
38 Color: | |
39 rgba: 1, 1, 1, 0.8 | |
40 Line | |
41 points: 0, dp(10), self.width, dp(10) | |
42 width: dp(3) | |
43 | |
44 | |
45 <ListWidgetItem>: | |
46 size_hint_y: None | |
47 height: dp(button_height) | |
48 | |
49 | |
50 <ListWidget>: | |
51 size_hint: 1, None | |
52 height: dp(button_height) | |
53 | |
54 | |
55 <AdvancedListRow>: | |
56 canvas.before: | |
57 Color: | |
58 rgba: 1, 1, 1, 0.2 if self.global_index%2 else 0.1 | |
59 Rectangle: | |
60 pos: self.pos | |
61 size: self.size | |
62 size_hint: 1, None | |
63 height: self.minimum_height | |
64 rows: 1 | |
65 canvas.after: | |
66 Color: | |
67 rgba: 0, 0, 1, 0.5 if self.selected else 0 | |
68 Rectangle: | |
69 pos: self.pos | |
70 size: self.size | |
71 | |
72 | |
73 <AdvancedListContainer>: | |
74 cols: 1 | |
75 size_hint: 1, None | |
76 height: self.minimum_height | |
77 | |
78 | |
79 <VerticalContainer>: | |
80 cols: 1 | |
81 size_hint: 1, None | |
82 height: self.minimum_height | |
83 | |
84 | |
85 <PairsContainer>: | |
86 cols: 2 | |
87 size_hint: 1, None | |
88 height: self.minimum_height | |
89 | |
90 | |
91 <TabsContainer>: | |
92 size_hint: 1, None | |
93 height: 100 | |
94 | |
95 | |
96 <FormButton>: | |
97 size_hint: 1, None | |
98 height: dp(button_height) | |
99 | |
100 | |
101 <FileDialog>: | |
102 orientation: "vertical" | |
103 message: message | |
104 file_chooser: file_chooser | |
105 Label: | |
106 id: message | |
107 size_hint: 1, None | |
108 text_size: root.width, None | |
109 size: self.texture_size | |
110 FileChooserListView: | |
111 id: file_chooser | |
112 Button: | |
113 size_hint: 1, None | |
114 height: dp(50) | |
115 text: "choose" | |
116 on_release: root.onSelect(file_chooser.selection) | |
117 Button: | |
118 size_hint: 1, None | |
119 height: dp(50) | |
120 text: "cancel" | |
121 on_release: root.onCancel() | |
122 | |
123 | |
124 | |
125 <XMLUIPanelGrid>: | |
126 cols: 1 | |
127 size_hint: 1, None | |
128 height: self.minimum_height |