updated to pauses

This commit is contained in:
2025-06-07 21:08:23 +03:00
parent 0ebdbc6b74
commit fa3a11ee4b
17 changed files with 604 additions and 203 deletions

View File

@@ -642,13 +642,46 @@
valign: "middle"
text_size: self.size
on_press: root.optimize_route_entries()
# Pauses frame
BoxLayout:
id: pauses_frame
orientation: "horizontal"
spacing: 10
padding: 10
size_hint_y: None
height: 60
canvas.before:
Color:
rgba: 0.15, 0.15, 0.18, 1
Rectangle:
pos: self.pos
size: self.size
Label:
id: pauses_label
text: "Pauses"
font_size: 16
halign: "left"
valign: "middle"
color: 1, 1, 1, 1
size_hint_x: 0.7
text_size: self.width, None
Button:
id: pauses_edit_btn
text: "Edit"
size_hint_x: 0.3
width: 120
font_size: 16
background_color: 0.341, 0.235, 0.980, 1
color: 1, 1, 1, 1
on_press: root.open_pauses_popup()
# Preview frame (label + button on first row, image on second row)
BoxLayout:
orientation: "vertical"
size_hint_y: None
height: 300 # Adjust as needed for your image size
padding: [10, 10, 10, 10]
height: 255 # Adjust as needed for your image size
padding: [5, 5, 5, 5]
spacing: 10
canvas.before:
Color:
@@ -660,8 +693,8 @@
BoxLayout:
orientation: "horizontal"
size_hint_y: None
height: 60
spacing: 10
height: 30
spacing: 5
Label:
text: "Preview your route"
@@ -700,4 +733,5 @@
background_color: 0.341, 0.235, 0.980, 1
color: 1, 1, 1, 1
font_size: 16
on_press: app.root.current = "home"
on_press: app.root.current = "home"