updated trips

This commit is contained in:
2025-06-03 16:34:15 +03:00
parent bfe81692b6
commit 57bc5c4f81
6 changed files with 176 additions and 90 deletions

View File

@@ -227,7 +227,7 @@
BoxLayout:
orientation: "vertical"
size_hint_y: None
height: 120 # Adjusted height for the frame
height: 180 # Adjusted height for the frame
spacing: 10
padding: 10
canvas.before:
@@ -255,16 +255,64 @@
values: [] # Initially empty
size_hint: (0.5, None)
height: 25
font_size: 14 # Reduced font size
on_text: root.on_device_selected(self.text) # Trigger background color change
font_size: 14
on_text: root.on_device_selected(self.text)
# New row: Starting date and hour
BoxLayout:
orientation: "horizontal"
size_hint_y: None
height: 30
spacing: 10
Label:
text: "Starting Date"
size_hint_x: 0.3
font_size: 14
Button:
id: date_picker_button
text: "Select Date"
size_hint: (0.5, None)
id: start_date_picker_button
text: "Select Start Date"
size_hint_x: 0.4
height: 25
font_size: 14 # Reduced font size
on_press: root.open_date_picker()
font_size: 14
on_press: root.open_date_picker('start')
Spinner:
id: start_hour_spinner
text: "00"
values: [f"{i:02d}" for i in range(24)]
size_hint_x: 0.2
height: 25
font_size: 14
# New row: End date and hour
BoxLayout:
orientation: "horizontal"
size_hint_y: None
height: 30
spacing: 10
Label:
text: "End Date"
size_hint_x: 0.3
font_size: 14
Button:
id: end_date_picker_button
text: "Select End Date"
size_hint_x: 0.4
height: 25
font_size: 14
on_press: root.open_date_picker('end')
Spinner:
id: end_hour_spinner
text: "23"
values: [f"{i:02d}" for i in range(24)]
size_hint_x: 0.2
height: 25
font_size: 14
# New row: Get trip server data button
Button: