Mercurial > libervia-desktop-kivy
diff libervia/desktop_kivy/plugins/plugin_wid_chat.py @ 518:196483685a63 default tip
Use Font-Awesome instead of Fontello, following change in Libervia Media.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Oct 2024 22:44:37 +0200 |
parents | b3cedbee561d |
children |
line wrap: on
line diff
--- a/libervia/desktop_kivy/plugins/plugin_wid_chat.py Sat Jul 13 13:08:13 2024 +0200 +++ b/libervia/desktop_kivy/plugins/plugin_wid_chat.py Sat Oct 26 22:44:37 2024 +0200 @@ -59,7 +59,7 @@ "name": _("chat"), "main": "Chat", "description": _("instant messaging with one person or a group"), - "icon_symbol": "chat", + "icon_symbol": "comments", } # FIXME: OTR specific code is legacy, and only used nowadays for lock color @@ -71,9 +71,9 @@ OTR_STATE_ENCRYPTED = 'encrypted' OTR_STATE_ENCRYPTION = (OTR_STATE_UNENCRYPTED, OTR_STATE_ENCRYPTED) -SYMBOL_UNENCRYPTED = 'lock-open' +SYMBOL_UNENCRYPTED = 'unlock' SYMBOL_ENCRYPTED = 'lock' -SYMBOL_ENCRYPTED_TRUSTED = 'lock-filled' +SYMBOL_ENCRYPTED_TRUSTED = 'lock' COLOR_UNENCRYPTED = (0.4, 0.4, 0.4, 1) COLOR_ENCRYPTED = (0.4, 0.4, 0.4, 1) COLOR_ENCRYPTED_TRUSTED = (0.29,0.87,0.0,1) @@ -118,13 +118,13 @@ media_type = data.get(C.KEY_ATTACHMENTS_MEDIA_TYPE, '') main_type = media_type.split('/', 1)[0] if main_type == 'image': - return "file-image" + return "regular file-image" elif main_type == 'video': - return "file-video" + return "regular file-video" elif main_type == 'audio': - return "file-audio" + return "regular file-audio" else: - return "doc" + return "regular file" def on_press(self): url = self.data.get('url') @@ -212,7 +212,7 @@ else: # we don't download automatically the image if the contact is not # in roster, to avoid leaking the ip - wid = Symbol(symbol="file-image") + wid = Symbol(symbol="regular file-image") self.add_widget(wid) else: wid = None @@ -496,9 +496,10 @@ def get_symbol(self): if self.chat.otr_state_encryption == OTR_STATE_UNENCRYPTED: - return 'lock-open' + return 'unlock' elif self.chat.otr_state_trust == OTR_STATE_TRUSTED: - return 'lock-filled' + # FIXME: Used to be "lock-filled" before transition to font-awesome. + return 'lock' else: return 'lock' @@ -899,7 +900,7 @@ G.host.add_note( _("private message"), notif_msg, - symbol = "chat", + symbol = "comments", action = { "action": 'chat', "target": self.target, @@ -911,7 +912,7 @@ G.host.add_note( _("mention"), notif_msg, - symbol = "chat", + symbol = "comments", action = { "action": 'chat', "target": self.target,