This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
m4all.kv
143 lines (135 loc) · 4.52 KB
/
m4all.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#:kivy 1.10.0
<GridItem>:
size_hint_x:1
AsyncImage:
size:self.parent.size
pos:self.parent.pos[0],self.parent.pos[1]
source: self.parent.imagelink
auto_bring_to_front:False
allow_stretch:True
keep_ratio:False
Button:
size_hint_y:1
size_hint_x:1
pos:self.parent.pos
text_size: self.size
text: "[b]"+self.parent.trackname+"\n-"+self.parent.trackartist+"[/b]"
valign: 'bottom'
halign: 'center'
background_color: 0, 0, 0, 0.2
markup:True
on_press: self.parent.on_press_action()
<RV>:
size_hint_x:1
viewclass: 'GridItem'
RecycleGridLayout:
default_size: dp(180), dp(180)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
size_hint_x:1
orientation: 'vertical'
cols: int(root.width/dp(180))
<TopTrackScreen>:
RV:
size: self.parent.size
pos: self.parent.pos
<SongScreen>:
id: songscreen
BoxLayout:
orientation: 'horizontal'
BoxLayout:
id: songscreenleftpane
orientation: 'vertical'
AsyncImage:
source:songscreen.trackimage
size : (dp(300),dp(300))
size_hint: (1, 1)
Label:
text:songscreen.trackname
size_hint_y: None
size_hint_x: 1
size:self.texture_size
Label:
text:'-'+songscreen.trackartist
size_hint_y: None
size_hint_x: 1
size:self.texture_size
Label:
text: 'Duration:'+songscreen.duration+'\nListeners:'+songscreen.listeners+'\n'+'Playcount:'+songscreen.playcount
size_hint_y: None
size_hint_x: 1
size:self.texture_size
StackLayout:
id: tagstack
spacing: [dp(4),dp(2)]
size_hint_y:None
Label:
text: 'Tags:'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
id : tagstack1
text: 'Unavailable'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
id:tagstack2
text: 'Unavailable'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
id:tagstack3
text: 'Unavailable'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
id:tagstack4
text: 'Unavailable'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
id:tagstack5
text: 'Unavailable'
size:self.texture_size
size_hint_y:None
size_hint_x:None
Button:
text:'Back'
on_press: root.manager.current = 'toptracks'
size: self.texture_size
size_hint_y: None
size_hint_x: 1
Widget:
size_hint_y: 1
Widget:
size_hint_y: 1
size_hint_x: None
size: dp(4),self.height
canvas:
Rectangle:
pos: (self.center_x - dp(2), 0)
size: dp(4), self.height
TabbedPanel:
do_default_tab: False
TabbedPanelItem:
text: 'Wiki'
ScrollView:
Label:
text:songscreen.wiki
text_size: self.width, None
size_hint_y: None
height: self.texture_size[1]
TabbedPanelItem:
text: 'lyrics'
ScrollView:
Label:
text:songscreen.lyrics
text_size: self.width, None
size_hint_y: None
height: self.texture_size[1]