Mercurial > libervia-desktop-kivy
annotate cagou/plugins/plugin_wid_file_sharing.kv @ 403:b0af45a92055
android: do not restore previously selected widget if an intent contains a widget to create.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Feb 2020 20:02:58 +0100 |
parents | b77792cc6d12 |
children | 3c9ba4a694ef |
rev | line source |
---|---|
192 | 1 # Cagou: desktop/mobile frontend for Salut à Toi XMPP client |
282 | 2 # Copyright (C) 2016-2019 Jérôme Poisson (goffi@goffi.org) |
192 | 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 | |
327
b77792cc6d12
use Kivy garden's new infrastructure for modernmenu and contextmenu:
Goffi <goffi@goffi.org>
parents:
282
diff
changeset
|
17 #:import ModernMenu kivy_garden.modernmenu.ModernMenu |
192 | 18 |
19 | |
20 <ModeBtn>: | |
21 width: self.texture_size[0] + sp(20) | |
22 size_hint: None, 1 | |
23 | |
24 | |
25 <FileSharing>: | |
26 float_layout: float_layout | |
27 layout: layout | |
28 FloatLayout: | |
29 id: float_layout | |
30 ScrollView: | |
31 size_hint: 1, 1 | |
32 pos_hint: {'x': 0, 'y': 0} | |
33 do_scroll_x: False | |
34 scroll_type: ['bars', 'content'] | |
35 bar_width: dp(6) | |
36 StackLayout: | |
37 id: layout | |
38 size_hint: 1, None | |
39 height: self.minimum_height | |
40 spacing: 0 | |
41 | |
42 | |
43 <PathWidget>: | |
44 shared: False | |
45 Symbol: | |
46 size_hint: 1, None | |
47 height: dp(80) | |
247
cf61a011f731
core (notes), common (symbol): added an icon showing note level:
Goffi <goffi@goffi.org>
parents:
237
diff
changeset
|
48 font_size: dp(40) |
192 | 49 symbol: 'folder-open-empty' if root.is_dir else 'doc' |
50 color: (1, 0, 0, 1) if root.shared else (0, 0, 0, 1) if root.is_dir else app.c_prim_dark | |
51 Label: | |
52 size_hint: None, None | |
53 width: dp(100) | |
54 font_size: sp(14) | |
55 text_size: dp(95), None | |
56 size: self.texture_size | |
57 text: root.name | |
58 halign: 'center' | |
59 | |
60 | |
61 <LocalPathWidget>: | |
222 | 62 shared: root.filepath in root.main_wid.shared_paths |