Mercurial > libervia-desktop-kivy
comparison cagou/plugins/plugin_wid_chat.kv @ 449:6c21a5a44b54
chat: show a padlock icon to indicate if message is e2e encrypted or not:
if a unencrypted message is received in encrypted context, the icon will be red to
indicate the problem.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Mar 2020 16:52:08 +0100 |
parents | 20a807443c3f |
children | 1dd6db69406a |
comparison
equal
deleted
inserted
replaced
448:20a807443c3f | 449:6c21a5a44b54 |
---|---|
137 size: self.texture_size | 137 size: self.texture_size |
138 padding: dp(5), 0 | 138 padding: dp(5), 0 |
139 markup: True | 139 markup: True |
140 valign: 'middle' | 140 valign: 'middle' |
141 text: u"[b]{}[/b], {}".format(escape(root.nick), root.time_text) | 141 text: u"[b]{}[/b], {}".format(escape(root.nick), root.time_text) |
142 Symbol: | |
143 size_hint_x: None | |
144 width: self.height | |
145 id: encrypted | |
146 symbol: 'lock-filled' if root.mess_data.encrypted else 'lock-open' | |
147 font_size: self.height - dp(3) | |
148 color: (1, 0, 0, 1) if not root.mess_data.encrypted and root.chat.encrypted else (0.55,0.55,0.55,1) | |
142 Label: | 149 Label: |
143 id: delivery | 150 id: delivery |
144 color: C.COLOR_BTN_LIGHT | 151 color: C.COLOR_BTN_LIGHT |
145 font_size: root.font_size | 152 font_size: root.font_size |
146 text_size: None, None | 153 text_size: None, None |