saved info
This commit is contained in:
@@ -36,13 +36,14 @@
|
||||
pos: self.pos
|
||||
radius: [dp(15)]
|
||||
|
||||
# Control panel overlay (bottom center, 5 columns, 1 row)
|
||||
# New control panel overlay (bottom center, 1/6 width, 90% transparent)
|
||||
BoxLayout:
|
||||
id: controls_layout
|
||||
orientation: 'horizontal'
|
||||
size_hint: None, None
|
||||
size: dp(340), dp(70)
|
||||
pos_hint: {'center_x': 0.5, 'y': 0.02}
|
||||
width: root.width / 6 if root.width > 0 else dp(260)
|
||||
height: dp(70)
|
||||
pos: (root.width - self.width) / 2, dp(10)
|
||||
opacity: 1
|
||||
spacing: dp(10)
|
||||
padding: dp(10)
|
||||
@@ -53,46 +54,51 @@
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(20)]
|
||||
|
||||
Button:
|
||||
id: backward_btn
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(60)
|
||||
size: dp(50), dp(50)
|
||||
background_normal: root.resources_path + '/backward.png'
|
||||
background_down: root.resources_path + '/backward.png'
|
||||
background_color: 1, 1, 1, 0
|
||||
border: (0, 0, 0, 0)
|
||||
on_press: root.previous_media()
|
||||
|
||||
Button:
|
||||
id: play_pause_btn
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(60)
|
||||
size: dp(50), dp(50)
|
||||
background_normal: root.resources_path + '/play.png'
|
||||
background_down: root.resources_path + '/pause.png'
|
||||
background_color: 1, 1, 1, 0
|
||||
border: (0, 0, 0, 0)
|
||||
on_press: root.toggle_pause()
|
||||
|
||||
Button:
|
||||
id: settings_btn
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(60)
|
||||
size: dp(50), dp(50)
|
||||
background_normal: root.resources_path + '/settings.png'
|
||||
background_down: root.resources_path + '/settings.png'
|
||||
background_color: 1, 1, 1, 0
|
||||
border: (0, 0, 0, 0)
|
||||
on_press: root.show_settings()
|
||||
Button:
|
||||
id: exit_btn
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(60)
|
||||
size: dp(50), dp(50)
|
||||
background_normal: root.resources_path + '/exit.png'
|
||||
background_down: root.resources_path + '/exit.png'
|
||||
background_color: 1, 1, 1, 0
|
||||
border: (0, 0, 0, 0)
|
||||
on_press: app.stop()
|
||||
Button:
|
||||
id: forward_btn
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(60)
|
||||
size: dp(50), dp(50)
|
||||
background_normal: root.resources_path + '/forward.png'
|
||||
background_down: root.resources_path + '/forward.png'
|
||||
background_color: 1, 1, 1, 0
|
||||
border: (0, 0, 0, 0)
|
||||
on_press: root.next_media()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user