updated view

This commit is contained in:
Kivy Signage Player
2025-10-27 14:08:27 +02:00
parent bb33743729
commit e3831d1594
3 changed files with 121 additions and 2 deletions

View File

@@ -88,7 +88,7 @@
background_normal: root.resources_path + '/exit.png'
background_down: root.resources_path + '/exit.png'
border: (0, 0, 0, 0)
on_press: app.stop()
on_press: root.show_exit_popup()
Button:
id: forward_btn
size_hint: None, None
@@ -103,6 +103,53 @@
# Exit password popup
<ExitPasswordPopup@Popup>:
title: 'Exit Application'
size_hint: 0.4, 0.3
auto_dismiss: False
BoxLayout:
orientation: 'vertical'
padding: dp(20)
spacing: dp(15)
Label:
text: 'Enter password to exit:'
size_hint_y: None
height: dp(30)
TextInput:
id: password_input
multiline: False
password: True
font_size: sp(16)
size_hint_y: None
height: dp(40)
Label:
id: error_label
text: ''
color: 1, 0, 0, 1
size_hint_y: None
height: dp(30)
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: dp(50)
spacing: dp(20)
Button:
text: 'Exit'
background_color: 0.6, 0.2, 0.2, 1
on_press: root.check_password()
Button:
text: 'Cancel'
background_color: 0.2, 0.6, 0.2, 1
on_press: root.dismiss()
# Settings popup content
<SettingsPopup@Popup>:
title: 'Player Settings'
@@ -174,6 +221,46 @@
multiline: False
font_size: sp(14)
# Orientation
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: dp(40)
spacing: dp(10)
Label:
text: 'Orientation:'
size_hint_x: 0.3
text_size: self.size
halign: 'left'
valign: 'middle'
TextInput:
id: orientation_input
size_hint_x: 0.7
multiline: False
font_size: sp(14)
# Touch
BoxLayout:
orientation: 'horizontal'
size_hint_y: None
height: dp(40)
spacing: dp(10)
Label:
text: 'Touch:'
size_hint_x: 0.3
text_size: self.size
halign: 'left'
valign: 'middle'
TextInput:
id: touch_input
size_hint_x: 0.7
multiline: False
font_size: sp(14)
Widget:
size_hint_y: 0.1