Mercurial > libervia-desktop-kivy
comparison 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 |
comparison
equal
deleted
inserted
replaced
458:1dd6db69406a | 459:72290ebfaa8b |
---|---|
44 size_hint: 1, None | 44 size_hint: 1, None |
45 height: dp(60) | 45 height: dp(60) |
46 Avatar: | 46 Avatar: |
47 id: avatar | 47 id: avatar |
48 pos_hint: {'x': 0, 'y': 0} | 48 pos_hint: {'x': 0, 'y': 0} |
49 source: root.data['avatar']['path'] if root.data.get('avatar') else app.default_avatar | 49 data: root.data.get('avatar') |
50 allow_stretch: True | 50 allow_stretch: True |
51 BoxLayout: | 51 BoxLayout: |
52 id: label_box | 52 id: label_box |
53 size_hint: 1, None | 53 size_hint: 1, None |
54 height: self.minimum_height | 54 height: self.minimum_height |