comparison src/cagou/plugins/plugin_wid_chat.kv @ 105:ce6ef88f2cff

chat: avatar improvments: - avatar source is not set anymore in kv but on MessageWidget init, so None value can be handled correclty - Message widget add itself to mess_data before parsing kv, so call to properties in kv can update the widget correctly (specially important for embedded bridge)
author Goffi <goffi@goffi.org>
date Sun, 15 Jan 2017 18:02:53 +0100
parents 663e44f30092
children 9909ed7a7a20
comparison
equal deleted inserted replaced
104:663e44f30092 105:ce6ef88f2cff
54 id: header_box 54 id: header_box
55 size_hint: 1, None 55 size_hint: 1, None
56 height: avatar.height 56 height: avatar.height
57 MessAvatar: 57 MessAvatar:
58 id: avatar 58 id: avatar
59 source: root.mess_data.avatar
60 Label: 59 Label:
61 id: time_label 60 id: time_label
62 text_size: None, None 61 text_size: None, None
63 size_hint: None, None 62 size_hint: None, None
64 size: self.texture_size 63 size: self.texture_size