-
Notifications
You must be signed in to change notification settings - Fork 0
/
laner.kv
53 lines (48 loc) · 1.51 KB
/
laner.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<MyCard>:
radius: dp(5)
size_hint:(1,1)
# theme_bg_color: "Custom"
on_release: app.my_screen_manager.current_screen.setPath(self.path)
AsyncImage:
id: test_stuff
source: root.icon
size_hint: [.8,.6] if root.icon=='assets/icons/file.png' else [.9,.7]
fit_mode: 'contain'
mipmap: True
pos_hint: {"top":1}
radius: (dp(5),dp(5),0,0)
MDButton:
# theme_bg_color: "Custom"
theme_height: "Custom"
theme_width: "Custom"
opacity: 0 if root.is_dir else 1
radius: '15sp'
size_hint: [None, None]
width: '35sp'
height: '35sp'
# md_bg_color: [.7,.6,.9,1]
pos_hint: {"top": .979, "right": .97}
on_release: app.my_screen_manager.current_screen.showDownloadDialog(root.path)
MDButtonIcon:
icon: "download"
pos_hint: {'x':.23,'y':.2}
# theme_icon_color: "Custom"
# icon_color: [1,1,1,1]
MDLabel:
text: root.myFormat(root.text)
theme_font_size:'Custom'
font_size: '11sp'
size_hint: [None, None]
size: (root.width, 40)
text_size: (root.width, None)
<RV>:
viewclass: 'MyCard'
My_RecycleGridLayout:
id: scroll_content
default_size: 1, '140sp' # children widgets default size
default_size_hint: 1, None
cols:4
spacing:18
padding:"10dp"
size_hint: (1, None)
height: self.minimum_height + 140