Mercurial > libervia-desktop-kivy
diff cagou/kv/common.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 | 1dd6db69406a |
children | 3c9ba4a694ef |
line wrap: on
line diff
--- a/cagou/kv/common.kv Tue Apr 14 21:14:44 2020 +0200 +++ b/cagou/kv/common.kv Sun Apr 19 17:06:45 2020 +0200 @@ -46,7 +46,7 @@ Avatar: id: avatar pos_hint: {'x': 0, 'y': 0} - source: root.data['avatar']['path'] if root.data.get('avatar') else app.default_avatar + data: root.data.get('avatar') allow_stretch: True BoxLayout: id: label_box