updated with main screen

This commit is contained in:
2025-06-02 16:16:16 +03:00
parent 5baca9f3be
commit 94c64a9dec
5 changed files with 95 additions and 5 deletions

View File

@@ -145,6 +145,47 @@
size_hint: (1, 0.2)
<HomeScreen>:
BoxLayout:
orientation: "vertical"
padding: 10
spacing: 10
canvas.before:
Color:
rgba: 0.11, 0.10, 0.15, 1 # Background color: #1C1A27
Rectangle:
pos: self.pos
size: self.size
Label:
text: "Welcome to Home Screen"
font_size: 24
size_hint_y: None
height: 50
color: 1, 1, 1, 1 # White text color
ScrollView:
size_hint: (1, 0.6)
GridLayout:
id: projects_list
cols: 1
size_hint_y: None
height: self.minimum_height
Button:
text: "Create New Project / Trip"
size_hint_y: None
height: 50
background_color: 0.341, 0.235, 0.980, 1 # Purple color (#573CFA)
on_press: root.create_new_project()
Label:
id: result_label
text: ""
size_hint_y: None
height: 30
color: 1, 1, 1, 1 # White text color
<GetTripFromServer>:
BoxLayout:
orientation: "vertical"
padding: 20
@@ -242,6 +283,16 @@
font_size: 14 # Reduced font size
size_hint: (1, 0.8)
# Fourth row: Back to Home button
Button:
text: "Back to Home"
size_hint_y: None
height: 50
size_hint_x: 0.8
pos_hint: {"center_x": 0.5}
background_color: 0.341, 0.235, 0.980, 1 # Purple color (#573CFA)
on_press: app.root.current = "home"
<SettingsScreen>:
BoxLayout:
orientation: "vertical"