-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonos.kv
More file actions
66 lines (62 loc) · 1.72 KB
/
sonos.kv
File metadata and controls
66 lines (62 loc) · 1.72 KB
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
<Placeholder>:
text: "Please select a controller"
<Player>:
text_size: self.size
halign: "center"
valign: "middle"
<CurrentPlayer>:
orientation: "vertical"
Label:
text: root.playername
size_hint: (1,0.1)
font_size: 25
BoxLayout:
orientation: "horizontal"
padding: (50, 0, 40, 0)
size_hint: (1,0.6)
AsyncImage:
id: albumart
source: root.albumart
size: self.texture_size
size_hint: (0.9,1)
allow_stretch: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
on_touch_down: root.swipe_start(*args)
on_touch_up: root.swipe_stop(*args)
Slider:
id: playervolume
orientation: "vertical"
min: 0
max: 100
steps: 1
value: 0
size_hint: (0.1,1)
on_value: root.volumechanged(*args)
on_touch_down: root.volumeslider_touch_down(*args)
on_touch_up: root.volumeslider_touch_up(*args)
Label:
text: root.currenttrack
size_hint: (1,0.1)
text_size: self.size
halign: "center"
font_size: 20
BoxLayout:
orientation: "horizontal"
size_hint: (1,0.2)
Button:
id: groupButton
text: "Group"
on_release: root.editgroup(*args)
Button:
id: playAntenne
on_release: root.radiostations(*args)
text: "Radio Stations"
Button:
id: playButton
on_press: root.play()
text: root.playerstatus
<Controller>:
BoxLayout:
id: players
orientation: "vertical"
size_hint: (.3,1)