nice actionbar

This commit is contained in:
rgarcia-herrera 2020-07-16 12:14:47 -05:00
parent 7bce2dc8bd
commit b929e1df8f

View File

@ -1,11 +1,22 @@
#:import random random.random #:import random random.random
#:import RiseInTransition kivy.uix.screenmanager.RiseInTransition #:import RiseInTransition kivy.uix.screenmanager.RiseInTransition
<MapScreen>: <MapScreen>:
BoxLayout: BoxLayout:
Button: orientation: 'vertical'
text: 'Goto settings' ActionBar:
on_press: root.manager.current = 'compass' pos_hint: {'top':1}
ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'we ride together'
on_press: root.manager.current = 'compass'
MapView: MapView:
id: mapview id: mapview
@ -26,8 +37,19 @@
<CompassScreen>: <CompassScreen>:
BoxLayout: BoxLayout:
Button: orientation: 'vertical'
text: 'My settings button'
Button: ActionBar:
text: 'Back to menu' pos_hint: {'top':1}
on_press: root.manager.current = 'map' ActionView:
use_separator: True
ActionPrevious:
title: 'Social Cycling'
with_previous: False
ActionButton:
important: True
text: 'set destination'
on_press: root.manager.current = 'map'