Mercurial > libervia-desktop-kivy
annotate cagou/plugins/plugin_wid_file_sharing.kv @ 232:557946bf9545
we are in dev version again
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Aug 2018 19:48:58 +0200 |
parents | a676cb07c1cb |
children | 059c5b39032d |
rev | line source |
---|---|
192 | 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 ModernMenu kivy.garden.modernmenu.ModernMenu | |
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 <ItemWidget>: | |
44 size_hint: None, None | |
45 width: self.base_width | |
46 height: self.minimum_height | |
47 orientation: 'vertical' | |
48 | |
49 | |
50 <PathWidget>: | |
51 shared: False | |
52 Symbol: | |
53 size_hint: 1, None | |
54 height: dp(80) | |
55 symbol: 'folder-open-empty' if root.is_dir else 'doc' | |
56 margin: dp(40) | |
57 color: (1, 0, 0, 1) if root.shared else (0, 0, 0, 1) if root.is_dir else app.c_prim_dark | |
58 Label: | |
59 size_hint: None, None | |
60 width: dp(100) | |
61 font_size: sp(14) | |
62 text_size: dp(95), None | |
63 size: self.texture_size | |
64 text: root.name | |
65 halign: 'center' | |
66 | |
67 | |
68 <LocalPathWidget>: | |
222 | 69 shared: root.filepath in root.main_wid.shared_paths |
192 | 70 |
71 | |
72 <DeviceWidget>: | |
73 Symbol: | |
74 size_hint: 1, None | |
75 height: dp(80) | |
206
890b48e41998
plugin file sharing: use appropriate symbol when discovering devices
Goffi <goffi@goffi.org>
parents:
201
diff
changeset
|
76 symbol: root.getSymbol() |
192 | 77 margin: dp(40) |
78 color: 0, 0, 0, 1 | |
79 Label: | |
80 size_hint: None, None | |
81 width: dp(100) | |
82 font_size: sp(14) | |
83 text_size: dp(95), None | |
84 size: self.texture_size | |
85 text: root.name | |
86 halign: 'center' | |
87 | |
88 | |
89 <CategorySeparator>: | |
90 size_hint: 1, None | |
91 height: sp(20) |