created routes in app
This commit is contained in:
41
traccar.kv
41
traccar.kv
@@ -324,14 +324,51 @@
|
||||
background_color: 0.341, 0.235, 0.980, 1 # Purple color (#573CFA)
|
||||
on_press: root.get_trip_server_data()
|
||||
|
||||
# Third row: Result label
|
||||
# Third row: Route info and save
|
||||
BoxLayout:
|
||||
orientation: "horizontal"
|
||||
size_hint_y: None
|
||||
height: 50
|
||||
spacing: 10
|
||||
padding: 10
|
||||
canvas.before:
|
||||
Color:
|
||||
rgba: 0.15, 0.15, 0.15, 1
|
||||
Rectangle:
|
||||
pos: self.pos
|
||||
size: self.size
|
||||
|
||||
Label:
|
||||
id: points_count_label
|
||||
text: "Points: 0"
|
||||
font_size: 16
|
||||
size_hint_x: 0.2
|
||||
|
||||
Label:
|
||||
text: "Create Route"
|
||||
font_size: 16
|
||||
size_hint_x: 0.2
|
||||
|
||||
TextInput:
|
||||
id: route_name_input
|
||||
hint_text: "Enter route name"
|
||||
multiline: False
|
||||
size_hint_x: 0.4
|
||||
|
||||
Button:
|
||||
text: "Save"
|
||||
size_hint_x: 0.2
|
||||
background_color: 0.008, 0.525, 0.290, 1
|
||||
on_press: root.save_route()
|
||||
|
||||
# Fourth row: Result label
|
||||
Label:
|
||||
id: result_label
|
||||
text: "Welcome to the Home Screen!"
|
||||
font_size: 14 # Reduced font size
|
||||
size_hint: (1, 0.8)
|
||||
|
||||
# Fourth row: Back to Home button
|
||||
# Fifth row: Back to Home button
|
||||
Button:
|
||||
text: "Back to Home"
|
||||
size_hint_y: None
|
||||
|
||||
Reference in New Issue
Block a user