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