comparison cagou/plugins/plugin_wid_chat.kv @ 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 091e288838e1
comparison
equal deleted inserted replaced
132:7ad965999d47 133:c3aa71daceb8
16 16
17 #:import TransferMenu cagou.core.menu.TransferMenu 17 #:import TransferMenu cagou.core.menu.TransferMenu
18 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget 18 #:import SimpleXHTMLWidget cagou.core.simple_xhtml.SimpleXHTMLWidget
19 #:import _ sat.core.i18n._ 19 #:import _ sat.core.i18n._
20 #:import C cagou.core.constants.Const 20 #:import C cagou.core.constants.Const
21 #:import escape kivy.utils.escape_markup
21 22
22 23
23 <MessAvatar>: 24 <MessAvatar>:
24 size_hint: None, None 25 size_hint: None, None
25 size: dp(30), dp(30) 26 size: dp(30), dp(30)
66 color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1) 67 color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1)
67 text_size: None, None 68 text_size: None, None
68 size_hint: None, None 69 size_hint: None, None
69 size: self.texture_size 70 size: self.texture_size
70 padding: dp(5), 0 71 padding: dp(5), 0
71 text: u"{}, {}".format(root.mess_data.nick, root.mess_data.time_text) 72 markup: True
73 valign: 'middle'
74 text: u"[b]{}[/b], {}".format(escape(root.mess_data.nick), root.mess_data.time_text)
72 Label: 75 Label:
73 id: delivery 76 id: delivery
74 text_size: None, None 77 text_size: None, None
75 size_hint: None, None 78 size_hint: None, None
76 size: self.texture_size 79 size: self.texture_size