diff cagou/kv/menu.kv @ 197:c7d15ef4bfa8

core (menu): new EntitiesSelectorMenu: TransferMenu base has been moved to a "SlideMenu" base class, which is used to create a new "EntitiesSelectorMenu". This later widget allows user to select entities from her roster, and the selected jids are then sent back to user.
author Goffi <goffi@goffi.org>
date Wed, 23 May 2018 21:27:28 +0200
parents d11df7793399
children e42e0c45d384
line wrap: on
line diff
--- a/cagou/kv/menu.kv	Wed May 23 21:25:08 2018 +0200
+++ b/cagou/kv/menu.kv	Wed May 23 21:27:28 2018 +0200
@@ -91,3 +91,43 @@
         text_size: self.size
         halign: "center"
         valign: "top"
+
+
+<SideMenu>:
+    orientation: "vertical"
+    size_hint: self.base_size_hint_close
+    canvas.before:
+        Color:
+            rgba: self.bg_color
+        Rectangle:
+            pos: self.pos
+            size: self.size
+
+
+<EntitiesSelectorMenu>:
+    bg_color: 0, 0, 0, 0.9
+    filter_input: filter_input
+    layout: layout
+    callback_on_close: True
+    Label:
+        size_hint: 1, None
+        text_size: root.width, None
+        size: self.texture_size
+        padding: dp(5), dp(5)
+        color: 1, 1, 1, 1
+        text: root.instructions
+        halign: "center"
+    TextInput:
+        id: filter_input
+        size_hint: 1, None
+        height: dp(32)
+        multiline: False
+        hint_text: _(u"enter filter here")
+    ScrollView:
+        size_hint: 1, 1
+        BoxLayout:
+            id: layout
+            orientation: "vertical"
+            size_hint: 1, None
+            height: self.minimum_height
+            spacing: dp(5)