diff cagou/kv/menu.kv @ 376:9ef01266e3fe

core: new extra menu: a new "extra" menu is added in CagouWidget's header selector (at the end). This activate a side menu with global actions, like showing the "about" screen. Platform specific menus can be added with `local_platform.on_extra_menu_init`.
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents 5d994be1161b
children f7476818f9fb
line wrap: on
line diff
--- a/cagou/kv/menu.kv	Mon Jan 27 21:17:09 2020 +0100
+++ b/cagou/kv/menu.kv	Mon Jan 27 21:17:09 2020 +0100
@@ -27,10 +27,17 @@
     title_align: "center"
     size_hint: 0.8, 0.8
 
-<MenuItem>:
-    # following is needed to fix a bug in contextmenu
+<ExtraMenuItem>:
     size_hint: 1, None
+    height: dp(30)
 
+<ExtraSideMenu>:
+    bg_color: 0.23, 0.23, 0.23, 1
+    ExtraMenuItem:
+        text: _("About")
+        on_press: root.onAbout()
+    Widget:
+        # to push content to the top
 
 <TransferMenu>:
     items_layout: items_layout