Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.py @ 138:53fb221ad084
plugin chat: layout change:
- minimum_height is now working with BoxLayout, there is not reason anymore to use GridLayout for messages
- the avatar is now on the left on its own, and message header + body are on the right, aligned
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 13 Apr 2018 18:57:05 +0200 |
parents | 091e288838e1 |
children | ae58f84fe4e6 |
comparison
equal
deleted
inserted
replaced
137:b9139c87f393 | 138:53fb221ad084 |
---|---|
57 | 57 |
58 class MessAvatar(Image): | 58 class MessAvatar(Image): |
59 pass | 59 pass |
60 | 60 |
61 | 61 |
62 class MessageWidget(GridLayout): | 62 class MessageWidget(BoxLayout): |
63 mess_data = properties.ObjectProperty() | 63 mess_data = properties.ObjectProperty() |
64 mess_xhtml = properties.ObjectProperty() | 64 mess_xhtml = properties.ObjectProperty() |
65 mess_padding = (dp(5), dp(5)) | 65 mess_padding = (dp(5), dp(5)) |
66 avatar = properties.ObjectProperty() | 66 avatar = properties.ObjectProperty() |
67 delivery = properties.ObjectProperty() | 67 delivery = properties.ObjectProperty() |