Skip to content

Commit

Permalink
Update my.kv
Browse files Browse the repository at this point in the history
  • Loading branch information
Blue-Killer87 authored Sep 20, 2023
1 parent af9a790 commit b5d7240
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions my.kv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#:import MapSource kivy_garden.mapview.MapSource
#:import utils kivy.utils

#:import GPS GPS
WindowManager:
WelcomeScreen:
CreateScreen:
Expand Down Expand Up @@ -35,7 +35,7 @@ WindowManager:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
size: 1920, 1080
source: 'data/Orient_Welcome.jpg'
FloatLayout:
Label:
Expand All @@ -57,7 +57,7 @@ WindowManager:
canvas.before:
Rectangle:
pos: self.pos
size: self.size
size: 1920, 1080
source: 'data/Orient_Choose.jpg'

BoxLayout:
Expand All @@ -68,6 +68,11 @@ WindowManager:
markup: True
font_size: '50sp'
color: 1,1,1,1
multiline: True
text_size: self.width, None
height: self.texture_size[1]
halign: 'center'


Button:
text: "Create Track"
Expand All @@ -76,6 +81,11 @@ WindowManager:
markup: True
font_size: '50sp'
color: 1,1,1,1
multiline: True
text_size: self.width, None
height: self.texture_size[1]
halign: 'center'

<CreateScreen>:
name: "createscreen"

Expand Down Expand Up @@ -113,21 +123,38 @@ WindowManager:
Toolbar:
top: root.top
Button:
text: "Praha, Česká republika"
on_release: mapview.set_zoom_at(10,1,1), mapview.center_on(50.06, 14.4)
text: "Vaše lokace"
on_release: mapview.set_zoom_at(10,1,1), mapview.center_on(GPS.gps.location)
height: self.texture_size[1]
text_size: self.width, None
halign: 'center'
Button:
text: "Vesnice, Morava"
on_release: mapview.set_zoom_at(10,1,1), mapview.center_on(49.18, 16.6)
text: "Start"
on_release: mapview.set_zoom_at(10,1,1), mapview.center_on(app.run.start)
height: self.texture_size[1]
text_size: self.width, None
halign: 'center'
Spinner:
text: "Výběr Map"
values: MapSource.providers.keys()
on_text: mapview.map_source = self.text
height: self.texture_size[1]
text_size: self.width, None
halign: 'center'
Button:
text: "Zpět na výběr"
on_release: app.root.current = "choosescreen"

height: self.texture_size[1]
text_size: self.width, None
halign: 'center'
Toolbar:
Label:
text: "Longitude: {}".format(mapview.lon)
height: self.texture_size[1]
text_size: self.width, None
halign: 'center'
Label:
text: "Latitude: {}".format(mapview.lat)
height: self.texture_size[1]
text_size: self.width, None
halign: 'center'

0 comments on commit b5d7240

Please sign in to comment.