comparison cagou/plugins/plugin_wid_chat.kv @ 354:aa860c10acfc

chat: new chat selector: Using the new ScreenManager feature, a widget to select a chat to display is shown when a user opens the chat (except if an entity jid is specified, in which case it opens directly the Chat widget), or when user presses ESC. When on ChatSelector, pressing ESC brings to the root widget (i.e. default widget). The ChatSelect is a first draft, it is planned to show opened chats, rooms, and a way to create new chats.
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 18:44:35 +0100
parents d9d2b56f46db
children abb57182ebfb
comparison
equal deleted inserted replaced
353:19422bbd9c8e 354:aa860c10acfc
19 #:import escape kivy.utils.escape_markup 19 #:import escape kivy.utils.escape_markup
20 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget 20 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget
21 #:import DelayedBoxLayout cagou.core.common_widgets.DelayedBoxLayout 21 #:import DelayedBoxLayout cagou.core.common_widgets.DelayedBoxLayout
22 #:import ScrollEffect kivy.effects.scroll.ScrollEffect 22 #:import ScrollEffect kivy.effects.scroll.ScrollEffect
23 23
24
25 # Chat Selector
26
27 <ChatSelector>:
28 JidSelector:
29 on_select: root.on_select(args[1])
30
31
32 # Chat
24 33
25 <MessAvatar>: 34 <MessAvatar>:
26 size_hint: None, None 35 size_hint: None, None
27 size: dp(30), dp(30) 36 size: dp(30), dp(30)
28 canvas.before: 37 canvas.before: