first commit
This commit is contained in:
@@ -8,102 +8,135 @@
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
|
||||
# Main content area
|
||||
BoxLayout:
|
||||
id: main_layout
|
||||
orientation: 'vertical'
|
||||
|
||||
# Content display area (will be dynamically populated)
|
||||
Widget:
|
||||
id: content_area
|
||||
size_hint: 1, 1
|
||||
|
||||
# Status label (shown when no content or errors)
|
||||
Label:
|
||||
id: status_label
|
||||
text: 'Loading...'
|
||||
size_hint: 1, None
|
||||
height: dp(40)
|
||||
pos_hint: {'center_x': 0.5}
|
||||
color: 1, 1, 1, 1
|
||||
font_size: sp(16)
|
||||
text_size: self.size
|
||||
halign: 'center'
|
||||
valign: 'middle'
|
||||
|
||||
# Control panel overlay
|
||||
FloatLayout:
|
||||
id: overlay_layout
|
||||
# Main content area - FULLSCREEN WIDGET
|
||||
Widget:
|
||||
id: content_area
|
||||
size_hint: 1, 1
|
||||
pos_hint: {'x': 0, 'y': 0}
|
||||
|
||||
# Status label overlay (shown when no content or errors)
|
||||
Label:
|
||||
id: status_label
|
||||
text: 'Loading...'
|
||||
size_hint: None, None
|
||||
size: dp(400), dp(60)
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
|
||||
color: 1, 1, 1, 1
|
||||
font_size: sp(18)
|
||||
text_size: self.size
|
||||
halign: 'center'
|
||||
valign: 'middle'
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0, 0, 0, 0.7
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(15)]
|
||||
|
||||
# Control panel overlay (always on top)
|
||||
BoxLayout:
|
||||
id: controls_layout
|
||||
orientation: 'horizontal'
|
||||
size_hint: None, None
|
||||
size: dp(450), dp(60)
|
||||
pos_hint: {'right': 0.98, 'top': 0.98}
|
||||
opacity: 0
|
||||
spacing: dp(5)
|
||||
padding: dp(10)
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.1, 0.1, 0.1, 0.9
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(15)]
|
||||
|
||||
# Controls container
|
||||
BoxLayout:
|
||||
id: controls_layout
|
||||
orientation: 'horizontal'
|
||||
# Control buttons
|
||||
Button:
|
||||
id: prev_btn
|
||||
text: '⏮'
|
||||
size_hint: None, None
|
||||
size: dp(450), dp(60)
|
||||
pos_hint: {'right': 0.98, 'top': 0.98}
|
||||
opacity: 0
|
||||
spacing: dp(5)
|
||||
padding: dp(10)
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.2, 0.2, 0.9
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.previous_media()
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.1, 0.1, 0.1, 0.8
|
||||
rgba: self.background_color
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(10)]
|
||||
radius: [dp(8)]
|
||||
|
||||
# Control buttons
|
||||
Button:
|
||||
id: prev_btn
|
||||
text: '⏮'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.2, 0.2, 1
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.previous_media()
|
||||
|
||||
Button:
|
||||
id: play_pause_btn
|
||||
text: '⏸'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.6, 0.2, 1
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.toggle_pause()
|
||||
|
||||
Button:
|
||||
id: next_btn
|
||||
text: '⏭'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.2, 0.2, 1
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.next_media()
|
||||
|
||||
Button:
|
||||
id: settings_btn
|
||||
text: '⚙'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.4, 0.4, 0.2, 1
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.show_settings()
|
||||
|
||||
Button:
|
||||
id: exit_btn
|
||||
text: '⏻'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.6, 0.2, 0.2, 1
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.exit_app()
|
||||
Button:
|
||||
id: play_pause_btn
|
||||
text: '⏸'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.6, 0.2, 0.9
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.toggle_pause()
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: self.background_color
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(8)]
|
||||
|
||||
Button:
|
||||
id: next_btn
|
||||
text: '⏭'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.2, 0.2, 0.2, 0.9
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.next_media()
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: self.background_color
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(8)]
|
||||
|
||||
Button:
|
||||
id: settings_btn
|
||||
text: '⚙'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.4, 0.4, 0.2, 0.9
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.show_settings()
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: self.background_color
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(8)]
|
||||
|
||||
Button:
|
||||
id: exit_btn
|
||||
text: '⏻'
|
||||
size_hint: None, None
|
||||
size: dp(60), dp(50)
|
||||
font_size: sp(18)
|
||||
background_color: 0.6, 0.2, 0.2, 0.9
|
||||
color: 1, 1, 1, 1
|
||||
on_press: root.exit_app()
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: self.background_color
|
||||
RoundedRectangle:
|
||||
size: self.size
|
||||
pos: self.pos
|
||||
radius: [dp(8)]
|
||||
|
||||
|
||||
# Settings popup content
|
||||
|
||||
Reference in New Issue
Block a user