Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.kv @ 185:ab3f5173ef5c
chat, simple XHTML: font size adjustement
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 May 2018 20:07:17 +0200 |
parents | ffef21fd97a2 |
children | ba8f3a4a5ac7 |
comparison
equal
deleted
inserted
replaced
184:c63922860f80 | 185:ab3f5173ef5c |
---|---|
70 height: time_label.height if root.mess_data.type != C.MESS_TYPE_INFO else 0 | 70 height: time_label.height if root.mess_data.type != C.MESS_TYPE_INFO else 0 |
71 opacity: 1 if root.mess_data.type != C.MESS_TYPE_INFO else 0 | 71 opacity: 1 if root.mess_data.type != C.MESS_TYPE_INFO else 0 |
72 Label: | 72 Label: |
73 id: time_label | 73 id: time_label |
74 color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1) | 74 color: (0, 0, 0, 1) if root.mess_data.own_mess else (0.55,0.55,0.55,1) |
75 font_size: root.font_size | |
75 text_size: None, None | 76 text_size: None, None |
76 size_hint: None, None | 77 size_hint: None, None |
77 size: self.texture_size | 78 size: self.texture_size |
78 padding: dp(5), 0 | 79 padding: dp(5), 0 |
79 markup: True | 80 markup: True |
80 valign: 'middle' | 81 valign: 'middle' |
81 text: u"[b]{}[/b], {}".format(escape(root.mess_data.nick), root.mess_data.time_text) | 82 text: u"[b]{}[/b], {}".format(escape(root.mess_data.nick), root.mess_data.time_text) |
82 Label: | 83 Label: |
83 id: delivery | 84 id: delivery |
85 color: 0.4, 0.4, 0.4, 1 | |
86 font_size: root.font_size | |
84 text_size: None, None | 87 text_size: None, None |
85 size_hint: None, None | 88 size_hint: None, None |
86 size: self.texture_size | 89 size: self.texture_size |
87 padding: dp(5), 0 | 90 padding: dp(5), 0 |
88 # XXX: DejaVuSans font is needed as check mark is not in Roboto | 91 # XXX: DejaVuSans font is needed as check mark is not in Roboto |
89 # this can be removed when Kivy will be able to handle fallback mechanism | 92 # this can be removed when Kivy will be able to handle fallback mechanism |
90 # which will allow us to use fonts with more unicode characters | 93 # which will allow us to use fonts with more unicode characters |
91 font_name: "DejaVuSans" | 94 font_name: "DejaVuSans" |
92 text: u'' | 95 text: u'' |
93 color: 0.4, 0.4, 0.4, 1 | |
94 SimpleXHTMLWidget: | 96 SimpleXHTMLWidget: |
95 id: mess_xhtml | 97 id: mess_xhtml |
96 size_hint: 1, None | 98 size_hint: 1, None |
97 height: self.minimum_height | 99 height: self.minimum_height |
98 xhtml: root.message_xhtml or self.escape(root.message or u' ') | 100 xhtml: root.message_xhtml or self.escape(root.message or u' ') |