From e2c34bf2235c9f85fc91de9c0f1b74858f4ef89e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 24 Sep 2023 19:54:04 +0200 Subject: Rewrite contact details dialog --- main/data/conversation_details.ui | 207 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 main/data/conversation_details.ui (limited to 'main/data/conversation_details.ui') diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui new file mode 100644 index 00000000..1347ad2b --- /dev/null +++ b/main/data/conversation_details.ui @@ -0,0 +1,207 @@ + + + + + + + +
+ + Enable notifications + notification.on + + + Disable notifications + notification.off + +
+
+ + Reset to default + notification.default + +
+
+ +
+ + Notify for all messages + notification.on + + + Notify only for mentions + notification.highlight + + + Disable notifications + notification.off + +
+
+ + Reset to default + notification.default + +
+
+ \ No newline at end of file -- cgit v1.2.3-70-g09d2 From c2efb214afa9f712c7ac112899c7d9b730e10de0 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 25 Sep 2023 15:02:03 +0200 Subject: conversation details: Fix for libadwaita < 1.4 --- main/data/conversation_details.ui | 1 - main/src/windows/conversation_details.vala | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'main/data/conversation_details.ui') diff --git a/main/data/conversation_details.ui b/main/data/conversation_details.ui index 1347ad2b..4229d875 100644 --- a/main/data/conversation_details.ui +++ b/main/data/conversation_details.ui @@ -99,7 +99,6 @@ notification-symbolic Mute - True diff --git a/main/src/windows/conversation_details.vala b/main/src/windows/conversation_details.vala index 6fb66a1c..099412d1 100644 --- a/main/src/windows/conversation_details.vala +++ b/main/src/windows/conversation_details.vala @@ -46,6 +46,11 @@ namespace Dino.Ui.ConversationDetails { model.encryption_rows.items_changed.connect(create_preferences_rows); model.settings_rows.items_changed.connect(create_preferences_rows); model.notify["room-configuration-rows"].connect(create_preferences_rows); + +#if Adw_1_4 + // TODO: replace with putting buttons in new line on small screens + notification_button_menu_content.can_shrink = true; +#endif } private void update_pinned_button() { -- cgit v1.2.3-70-g09d2