From b929e1df8f45ac20c0bb6920b33821243120f482 Mon Sep 17 00:00:00 2001 From: rgarcia-herrera Date: Thu, 16 Jul 2020 12:14:47 -0500 Subject: [PATCH] nice actionbar --- flockompass.kv | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/flockompass.kv b/flockompass.kv index f8e9fce..8ae57f6 100644 --- a/flockompass.kv +++ b/flockompass.kv @@ -1,11 +1,22 @@ #:import random random.random #:import RiseInTransition kivy.uix.screenmanager.RiseInTransition + + : BoxLayout: - Button: - text: 'Goto settings' - on_press: root.manager.current = 'compass' + orientation: 'vertical' + ActionBar: + 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: id: mapview @@ -26,8 +37,19 @@ : BoxLayout: - Button: - text: 'My settings button' - Button: - text: 'Back to menu' - on_press: root.manager.current = 'map' + orientation: 'vertical' + + ActionBar: + pos_hint: {'top':1} + ActionView: + use_separator: True + ActionPrevious: + title: 'Social Cycling' + with_previous: False + ActionButton: + important: True + text: 'set destination' + on_press: root.manager.current = 'map' + + + \ No newline at end of file