Mercurial > libervia-desktop-kivy
changeset 133:c3aa71daceb8
plugin chat: use bold for nicknames in messages headers
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Apr 2018 16:13:08 +0200 |
parents | 7ad965999d47 |
children | 1cca97e27a69 |
files | cagou/plugins/plugin_wid_chat.kv |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv Fri Apr 06 16:13:08 2018 +0200 +++ b/cagou/plugins/plugin_wid_chat.kv Fri Apr 06 16:13:08 2018 +0200 @@ -18,6 +18,7 @@ #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget #:import _ sat.core.i18n._ #:import C cagou.core.constants.Const +#:import escape kivy.utils.escape_markup <MessAvatar>: @@ -68,7 +69,9 @@ size_hint: None, None size: self.texture_size padding: dp(5), 0 - text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) + markup: True + valign: 'middle' + text: u"[b]{}[/b], {}".format(escape(root.mess_data.nick), root.mess_data.time_text) Label: id: delivery text_size: None, None