comparison cagou/kv/menu.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/menu.kv@4d8c122b86a6
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 _ sat.core.i18n._
18
19 <AboutContent>:
20 text_size: self.size
21 halign: "center"
22 valign: "middle"
23
24 <AboutPopup>:
25 title_align: "center"
26 size_hint: 0.8, 0.8
27
28 <MenuItem>:
29 # following is need to fix a bug in contextmenu
30 size_hint: 1, None
31
32 <MenusWidget>:
33 height: self.children[0].height if self.children else 30
34
35 <MainMenu>:
36 cancel_handler_widget: self.parent
37
38 <TransferMenu>:
39 items_layout: items_layout
40 orientation: "vertical"
41 pos_hint: {"top": 0.5}
42 size_hint: 1, 0.5
43 canvas.before:
44 Color:
45 rgba: 0, 0, 0, 1
46 Rectangle:
47 pos: self.pos
48 size: self.size
49 BoxLayout:
50 size_hint: 1, None
51 height: dp(50)
52 ToggleButton:
53 id: upload_btn
54 text: _(u"upload")
55 group: "transfer"
56 state: "down"
57 ToggleButton:
58 id: send_btn
59 text: _(u"send")
60 group: "transfer"
61 Label:
62 size_hint: 1, 0.3
63 text: root.transfer_txt if upload_btn.state == 'down' else root.send_txt
64 text_size: self.size
65 halign: 'center'
66 valign: 'top'
67 ScrollView:
68 do_scroll_x: False
69 StackLayout:
70 size_hint: 1, None
71 padding: 20, 0
72 spacing: 15, 5
73 id: items_layout
74
75 <TransferItem>:
76 orientation: "vertical"
77 size_hint: None, None
78 size: dp(50), dp(90)
79 IconButton:
80 source: root.plug_info['icon_medium']
81 allow_stretch: True
82 size_hint: 1, None
83 height: dp(50)
84 Label:
85 text: root.plug_info['name']
86 text_size: self.size
87 halign: "center"
88 valign: "top"