Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_contact_list.kv @ 219:9faccd140119
plugin contact list: refactoring:
- contacts are now displayed in a grid
- they can be filtered thanks to FilterBehaviour
- use the new update system of QuickContactList
- a new "add a contact" button is visible, but not implemented yet.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jun 2018 22:26:15 +0200 |
parents | e1f6dab40eed |
children | e1a385a791cc |
comparison
equal
deleted
inserted
replaced
218:30be583dbabc | 219:9faccd140119 |
---|---|
12 # GNU Affero General Public License for more details. | 12 # GNU Affero General Public License for more details. |
13 | 13 |
14 # You should have received a copy of the GNU Affero General Public License | 14 # You should have received a copy of the GNU Affero General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 <ContactListView>: | 17 #:import _ sat.core.i18n._ |
18 row_height: dp(50) | |
19 | 18 |
20 <ContactItem>: | 19 <ContactItem>: |
21 padding: dp(10), dp(3) | 20 size_hint: None, None |
22 size_hint: 1, None | 21 width: self.base_width |
23 height: dp(50) | 22 height: self.minimum_height |
23 orientation: 'vertical' | |
24 Avatar: | 24 Avatar: |
25 id: avatar | |
26 size_hint: 1, None | |
27 height: dp(60) | |
25 source: root.data.get('avatar', app.default_avatar) | 28 source: root.data.get('avatar', app.default_avatar) |
26 size_hint: None, 1 | |
27 width: dp(60) | |
28 allow_stretch: True | 29 allow_stretch: True |
29 Label: | 30 Label: |
30 id: jid_label | 31 id: jid_label |
31 padding: dp(5), 0 | 32 size_hint: None, None |
33 text_size: root.base_width, None | |
34 size: self.texture_size | |
32 text: root.jid | 35 text: root.jid |
33 text_size: self.size | |
34 bold: True | 36 bold: True |
35 valign: "middle" | 37 valign: 'middle' |
38 halign: 'center' | |
39 | |
40 <ContactList>: | |
41 float_layout: float_layout | |
42 layout: layout | |
43 orientation: 'vertical' | |
44 BoxLayout: | |
45 size_hint: 1, None | |
46 height: dp(30) | |
47 Widget: | |
48 SymbolLabel: | |
49 symbol: 'plus-circled' | |
50 text: _("add a contact") | |
51 Widget: | |
52 FloatLayout: | |
53 id: float_layout | |
54 ScrollView: | |
55 size_hint: 1, 1 | |
56 pos_hint: {'x': 0, 'y': 0} | |
57 do_scroll_x: False | |
58 scroll_type: ['bars', 'content'] | |
59 bar_width: dp(6) | |
60 StackLayout: | |
61 id: layout | |
62 size_hint: 1, None | |
63 height: self.minimum_height | |
64 spacing: 0 |