comparison 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
comparison
equal deleted inserted replaced
492:5114bbb5daa3 493:b3cedbee561d
1 #Libervia Desktop-Kivy
2 # Copyright (C) 2016-2021 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 <PathWidget>:
44 shared: False
45 Symbol:
46 size_hint: 1, None
47 height: dp(80)
48 font_size: dp(40)
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>:
62 shared: root.filepath in root.main_wid.shared_paths