comparison 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
comparison
equal deleted inserted replaced
196:519b3a29743c 197:c7d15ef4bfa8
89 color: 1, 1, 1, 1 89 color: 1, 1, 1, 1
90 text: root.plug_info['name'] 90 text: root.plug_info['name']
91 text_size: self.size 91 text_size: self.size
92 halign: "center" 92 halign: "center"
93 valign: "top" 93 valign: "top"
94
95
96 <SideMenu>:
97 orientation: "vertical"
98 size_hint: self.base_size_hint_close
99 canvas.before:
100 Color:
101 rgba: self.bg_color
102 Rectangle:
103 pos: self.pos
104 size: self.size
105
106
107 <EntitiesSelectorMenu>:
108 bg_color: 0, 0, 0, 0.9
109 filter_input: filter_input
110 layout: layout
111 callback_on_close: True
112 Label:
113 size_hint: 1, None
114 text_size: root.width, None
115 size: self.texture_size
116 padding: dp(5), dp(5)
117 color: 1, 1, 1, 1
118 text: root.instructions
119 halign: "center"
120 TextInput:
121 id: filter_input
122 size_hint: 1, None
123 height: dp(32)
124 multiline: False
125 hint_text: _(u"enter filter here")
126 ScrollView:
127 size_hint: 1, 1
128 BoxLayout:
129 id: layout
130 orientation: "vertical"
131 size_hint: 1, None
132 height: self.minimum_height
133 spacing: dp(5)