From f27385d952a7400902a58e67d02a6089e2de6289 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 18 Feb 2024 19:52:40 +0100 Subject: More noticeable encryption type color and encryption status - added file changes-allow-symbolic from GTK Adwaita icon theme as dino-unencrypted.svg (licensed under LGPL3) --- main/src/ui/chat_input/chat_input_controller.vala | 2 +- main/src/ui/chat_input/encryption_button.vala | 4 ++-- main/src/ui/conversation_content_view/conversation_item_skeleton.vala | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/chat_input/chat_input_controller.vala b/main/src/ui/chat_input/chat_input_controller.vala index d1c42d35..cee5fb71 100644 --- a/main/src/ui/chat_input/chat_input_controller.vala +++ b/main/src/ui/chat_input/chat_input_controller.vala @@ -103,7 +103,7 @@ public class ChatInputController : Object { private void on_encryption_changed(Encryption encryption) { reset_input_field_status(); - if (encryption == Encryption.NONE) return; + if (encryption == Encryption.NONE) status_description_label.label = "This message won't be end-to-end encrypted." ; return; Application app = GLib.Application.get_default() as Application; var encryption_entry = app.plugin_registry.encryption_list_entries[encryption]; diff --git a/main/src/ui/chat_input/encryption_button.vala b/main/src/ui/chat_input/encryption_button.vala index 1f991338..2dd35ae9 100644 --- a/main/src/ui/chat_input/encryption_button.vala +++ b/main/src/ui/chat_input/encryption_button.vala @@ -72,7 +72,7 @@ public class EncryptionButton { } private void update_encryption_menu_icon() { - set_icon(conversation.encryption == Encryption.NONE ? "changes-allow-symbolic" : "changes-prevent-symbolic"); + set_icon(conversation.encryption == Encryption.NONE ? "dino-unencrypted" : "changes-prevent-symbolic"); } private void update_visibility() { @@ -111,4 +111,4 @@ public class EncryptionButton { } } -} \ No newline at end of file +} diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala index 5c71d4fb..e4decccd 100644 --- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala @@ -156,7 +156,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, encryption_image.visible = true; if (item.encryption == Encryption.OMEMO) { encryption_image.tooltip_text = Util.string_if_tooltips_active(_("This message is OMEMO encrypted.")); - Util.force_color(encryption_image, "#659E4F"); + Util.force_color(encryption_image, "#0AEC00"); } if (item.encryption == Encryption.PGP) { encryption_image.tooltip_text = Util.string_if_tooltips_active(_("This message is PGP encrypted.")); @@ -168,7 +168,7 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, if (conversation.encryption != Encryption.NONE) { encryption_image.icon_name = "changes-allow-symbolic"; encryption_image.tooltip_text = Util.string_if_tooltips_active(_("Unencrypted")); - Util.force_error_color(encryption_image); + Util.force_color(encryption_image, "#F02900"); encryption_image.visible = true; } else if (conversation.encryption == Encryption.NONE) { encryption_image.icon_name = null; -- cgit v1.2.3-70-g09d2