comparison cagou/plugins/plugin_wid_contact_list.kv @ 459:72290ebfaa8b

core (common), contact_list: new `data` property: when this property is set, the `source` is automatically set from avatar data.
author Goffi <goffi@goffi.org>
date Sun, 19 Apr 2020 17:06:45 +0200
parents 3e2333a11f61
children 3c9ba4a694ef
comparison
equal deleted inserted replaced
458:1dd6db69406a 459:72290ebfaa8b
46 spacing: dp(10) 46 spacing: dp(10)
47 Avatar: 47 Avatar:
48 id: avatar 48 id: avatar
49 size_hint: 1, None 49 size_hint: 1, None
50 height: dp(60) 50 height: dp(60)
51 source: root.contact_item.data.get('avatar', app.default_avatar) 51 data: root.contact_item.data.get('avatar')
52 allow_stretch: True 52 allow_stretch: True
53 Label: 53 Label:
54 size_hint: 1, None 54 size_hint: 1, None
55 color: 1, 1, 1, 1 55 color: 1, 1, 1, 1
56 text: _("Are you sure you wand to remove [b]{name}[/b] from your contact list?").format(name=e(root.contact_item.jid)) 56 text: _("Are you sure you wand to remove [b]{name}[/b] from your contact list?").format(name=e(root.contact_item.jid))