Mercurial > libervia-desktop-kivy
comparison cagou/kv/common.kv @ 458:1dd6db69406a
core: update avatar handling following backend changes:
new avatar data format is handled. When ContactItem is created, avatar and nicknames are
requested to backend if they are not already in cache.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 14 Apr 2020 21:14:44 +0200 |
parents | efee0e0afb78 |
children | 72290ebfaa8b |
comparison
equal
deleted
inserted
replaced
457:ec11a35dcf14 | 458:1dd6db69406a |
---|---|
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.get('avatar') or app.default_avatar | 49 source: root.data['avatar']['path'] if root.data.get('avatar') else app.default_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 |