diff src/cagou/kv/root_widget.kv @ 85:c2a7234d13d2

menu: use of garden's contextmenu for menus
author Goffi <goffi@goffi.org>
date Sat, 24 Dec 2016 14:20:49 +0100
parents 3608fef1857d
children c439c271ecdd
line wrap: on
line diff
--- a/src/cagou/kv/root_widget.kv	Sat Dec 24 14:20:40 2016 +0100
+++ b/src/cagou/kv/root_widget.kv	Sat Dec 24 14:20:49 2016 +0100
@@ -67,3 +67,20 @@
         size_hint: None, 1
         width: self.norm_image_size[0]
 
+<RootMenus>:
+    size_hint: 1, None
+    pos_hint: {'top': 1}
+
+<CagouRootWidget>:
+    root_body: root_body
+    root_menus: root_menus
+    # main body
+    RootBody:
+        id: root_body
+        orientation: "vertical"
+        size_hint: 1, None
+        height: root.height - root_menus.height
+    # general menus
+    # need to be added at the end so it's drawed above other widgets
+    RootMenus:
+        id: root_menus