Mercurial > libervia-desktop-kivy
annotate libervia/desktop_kivy/plugins/plugin_wid_file_sharing.kv @ 493:b3cedbee561d
refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 02 Jun 2023 18:26:16 +0200 |
parents | cagou/plugins/plugin_wid_file_sharing.kv@3c9ba4a694ef |
children | 196483685a63 |
rev | line source |
---|---|
493
b3cedbee561d
refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
Goffi <goffi@goffi.org>
parents:
461
diff
changeset
|
1 #Libervia Desktop-Kivy |
461 | 2 # Copyright (C) 2016-2021 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 |