diff cagou/kv/cagou_widget.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 1b835bcfa663
children d61bbbac4160
line wrap: on
line diff
--- a/cagou/kv/cagou_widget.kv	Mon Jan 27 21:17:09 2020 +0100
+++ b/cagou/kv/cagou_widget.kv	Mon Jan 27 21:17:09 2020 +0100
@@ -17,7 +17,7 @@
 #:import C cagou.core.constants.Const
 
 
-<HeaderWidgetChoice>:
+<HeaderChoice>:
     canvas.before:
         Color:
             rgba: 1, 1, 1, 1
@@ -29,6 +29,8 @@
     height: dp(44)
     spacing: dp(20)
     padding: dp(5), dp(3), dp(10), dp(3)
+
+<HeaderChoiceWidget>:
     ActionIcon:
         plugin_info: root.plugin_info
         size_hint: None, 1
@@ -42,6 +44,20 @@
         halign: "center"
         valign: "middle"
 
+<HeaderChoiceExtraMenu>:
+    ActionSymbol:
+        symbol: "dot-3-vert"
+        size_hint: None, 1
+        width: self.height
+    Label:
+        size_hint: None, 1
+        text: _("extra")
+        color: 1, 1, 1, 1
+        bold: True
+        size: self.texture_size
+        halign: "center"
+        valign: "middle"
+
 <HeaderWidgetSelector>:
     size_hint: None, None
     auto_width: False