2020-02-16 16:49:10 +01:00
|
|
|
KaraokeGUI:
|
|
|
|
|
2020-02-16 18:46:30 +01:00
|
|
|
<Label>:
|
|
|
|
font_name: 'CyrBit.ttf'
|
2020-02-16 19:51:14 +01:00
|
|
|
font_size: 12
|
2020-02-16 18:46:30 +01:00
|
|
|
|
|
|
|
<Action@Button>:
|
|
|
|
size_hint: 1, None
|
|
|
|
font_size: 32
|
|
|
|
height: 40
|
|
|
|
background_color: 0, 0, 0, 1
|
|
|
|
|
2020-02-16 16:49:10 +01:00
|
|
|
<Song>:
|
|
|
|
size_hint: None, None
|
2020-02-16 19:51:14 +01:00
|
|
|
size: 100, 100
|
2020-02-16 16:49:10 +01:00
|
|
|
orientation: 'vertical'
|
2020-02-16 18:46:30 +01:00
|
|
|
padding: 3
|
2020-02-16 16:49:10 +01:00
|
|
|
spacing: 0
|
|
|
|
|
|
|
|
canvas.before:
|
|
|
|
Color:
|
2020-02-16 18:46:30 +01:00
|
|
|
rgb: (0.5, 0.1, 0.5) if self.active else (0.3, 0.3, 0.3)
|
2020-02-16 16:49:10 +01:00
|
|
|
Line:
|
|
|
|
rectangle: self.pos[0], self.pos[1], self.size[0], self.size[1]
|
2020-02-16 18:46:30 +01:00
|
|
|
width: 2
|
|
|
|
joint: 'miter'
|
|
|
|
Color:
|
|
|
|
rgb: 0.9, 0.9, 0.9
|
2020-02-16 16:49:10 +01:00
|
|
|
|
|
|
|
Image:
|
|
|
|
source: self.parent.thumbnail
|
|
|
|
size_hint: 1, 0.8
|
|
|
|
Label:
|
|
|
|
size_hint: 1, 0.1
|
|
|
|
text: self.parent.name
|
|
|
|
|
|
|
|
<KaraokeGUI>:
|
|
|
|
orientation: 'vertical'
|
|
|
|
BoxLayout:
|
2020-02-16 18:46:30 +01:00
|
|
|
canvas.before:
|
|
|
|
Rectangle:
|
|
|
|
source: 'images/fondo_monkey_island_barco.png'
|
|
|
|
pos: self.pos
|
|
|
|
size: self.size
|
|
|
|
canvas.after:
|
|
|
|
Rectangle:
|
|
|
|
source: 'images/fondo_monkey_island_pareja.png'
|
|
|
|
pos: self.pos
|
|
|
|
size: self.size
|
|
|
|
orientation: 'vertical'
|
|
|
|
Label:
|
|
|
|
id: current_song_title
|
|
|
|
color: 0.9, 0.1, 0.3, 1
|
|
|
|
outline_color: 1, 1, 1, 1
|
|
|
|
outline_width: 1
|
2020-02-16 19:51:14 +01:00
|
|
|
font_size: 24
|
2020-02-16 18:46:30 +01:00
|
|
|
size_hint: 1, 0.1
|
|
|
|
text: ''
|
|
|
|
Image:
|
|
|
|
id: current_song_image
|
|
|
|
source: ''
|
|
|
|
|
|
|
|
BoxLayout: # Bottom actions and slides
|
2020-02-16 16:49:10 +01:00
|
|
|
orientation: 'horizontal'
|
2020-02-16 19:51:14 +01:00
|
|
|
height: 120
|
2020-02-16 16:49:10 +01:00
|
|
|
size_hint: 1, None
|
|
|
|
|
2020-02-16 18:46:30 +01:00
|
|
|
BoxLayout:
|
|
|
|
orientation: 'vertical'
|
2020-02-16 19:51:14 +01:00
|
|
|
size_hint: 0.3, 1
|
2020-02-16 18:46:30 +01:00
|
|
|
Action:
|
|
|
|
text: 'Play'
|
|
|
|
on_press: root.play()
|
|
|
|
Action:
|
|
|
|
text: 'Previous'
|
|
|
|
on_press: root.previous()
|
|
|
|
Action:
|
|
|
|
text: 'Next'
|
|
|
|
on_press: root.next()
|
|
|
|
Widget:
|
2020-02-16 16:49:10 +01:00
|
|
|
|
|
|
|
ScrollView:
|
|
|
|
id: songs_scroll
|
|
|
|
do_scroll_x: True
|
|
|
|
do_scroll_y: False
|
2020-02-16 19:51:14 +01:00
|
|
|
size_hint: 0.7, 1
|
2020-02-16 16:49:10 +01:00
|
|
|
|
|
|
|
GridLayout:
|
|
|
|
id: song_container
|
|
|
|
rows: 1
|
|
|
|
width: self.minimum_width
|
|
|
|
padding: 10
|
|
|
|
spacing: 10
|
|
|
|
size_hint: None, 1
|