Mercurial > libervia-desktop-kivy
comparison cagou/kv/root_widget.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/root_widget.kv@15434a7787ed |
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 #:import IconButton cagou.core.common.IconButton | |
18 | |
19 # <NotifIcon>: | |
20 # source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") | |
21 # size_hint: None, None | |
22 # size: self.texture_size | |
23 | |
24 <Note>: | |
25 text: self.message | |
26 | |
27 <NoteDrop>: | |
28 canvas.before: | |
29 Color: | |
30 rgba: 1, 1, 1, 1 | |
31 BorderImage: | |
32 pos: self.pos | |
33 size: self.size | |
34 source: 'atlas://data/images/defaulttheme/button' | |
35 size_hint: 1, None | |
36 text_size: self.width, None | |
37 halign: 'center' | |
38 height: self.texture_size[1] | |
39 padding: dp(2), dp(10) | |
40 | |
41 <NotesDrop>: | |
42 clear_btn: clear_btn.__self__ | |
43 auto_width: False | |
44 size_hint: 0.8, None | |
45 canvas.before: | |
46 Color: | |
47 rgba: 0.8, 0.8, 0.8, 1 | |
48 Rectangle: | |
49 pos: self.pos | |
50 size: self.size | |
51 Button: | |
52 id: clear_btn | |
53 text: "clear" | |
54 bold: True | |
55 size_hint: 1, None | |
56 height: dp(50) | |
57 on_release: del root.notes[:]; root.dismiss() | |
58 | |
59 <RootHeadWidget>: | |
60 manager: manager | |
61 notifs_icon: notifs_icon | |
62 size_hint: 1, None | |
63 height: dp(35) | |
64 IconButton: | |
65 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png") | |
66 allow_stretch: True | |
67 size_hint: None, 1 | |
68 width: self.norm_image_size[0] | |
69 on_release: root.notes_drop.open(self) if root.notes else None | |
70 ScreenManager: | |
71 id: manager | |
72 NotifsIcon: | |
73 id: notifs_icon | |
74 allow_stretch: True | |
75 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if self.notifs else app.expand("{media}/misc/black.png") | |
76 size_hint: None, 1 | |
77 width: self.norm_image_size[0] | |
78 | |
79 <RootMenus>: | |
80 size_hint: 1, None | |
81 pos_hint: {'top': 1} | |
82 | |
83 <CagouRootWidget>: | |
84 root_body: root_body | |
85 root_menus: root_menus | |
86 # main body | |
87 RootBody: | |
88 id: root_body | |
89 orientation: "vertical" | |
90 size_hint: 1, None | |
91 height: root.height - root_menus.height | |
92 # general menus | |
93 # need to be added at the end so it's drawed above other widgets | |
94 RootMenus: | |
95 id: root_menus |