diff cagou/kv/share_widget.kv @ 348:38fd457b2158

core (common, share_widget): new JidSelector widget: - A widget to select jid among a list is commonly needed, so it has been implemented in core.common, based on the code from ShareWidget - ShareWidget has been adapted accordingly - new ContactButton class in core.common
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 18:44:32 +0100
parents e2b51663d8b8
children 3669a26ef7d9
line wrap: on
line diff
--- a/cagou/kv/share_widget.kv	Sat Jan 04 16:24:57 2020 +0100
+++ b/cagou/kv/share_widget.kv	Fri Jan 17 18:44:32 2020 +0100
@@ -20,7 +20,6 @@
 
 <ShareWidget>:
     preview_box: preview_box
-    layout: layout
     orientation: 'vertical'
     Label:
         size_hint: 1, None
@@ -44,12 +43,8 @@
         height: self.font_size + dp(5)
         bold: True
         font_size: '25sp'
-    ScrollView:
-        StackLayout:
-            id: layout
-            size_hint: 1, None
-            height: self.minimum_height
-            spacing: 0
+    JidSelector:
+        on_select: root.on_select(args[1])
     Button:
         size_hint: 1, None
         height: C.BTN_HEIGHT