Mercurial > libervia-desktop-kivy
diff src/cagou/plugins/plugin_wid_chat.kv @ 116:8576d70ff803
chat: message header is hidden for info messages
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Jan 2017 20:39:32 +0100 |
parents | 9909ed7a7a20 |
children | f0291755b07c |
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.kv Thu Jan 26 20:39:29 2017 +0100 +++ b/src/cagou/plugins/plugin_wid_chat.kv Thu Jan 26 20:39:32 2017 +0100 @@ -17,6 +17,7 @@ #:import TransferMenu cagou.core.menu.TransferMenu #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget #:import _ sat.core.i18n._ +#:import C cagou.core.constants.Const <MessAvatar>: @@ -43,7 +44,8 @@ BoxLayout: id: header_box size_hint: 1, None - height: avatar.height + height: avatar.height if root.mess_data.type != C.MESS_TYPE_INFO else 0 + opacity: 1 if root.mess_data.type != C.MESS_TYPE_INFO else 0 MessAvatar: id: avatar Label: @@ -86,7 +88,6 @@ padding: root.mess_padding bold: True if root.mess_data.type == "info" else False - <Chat>: messages_widget: messages_widget ScrollView: