aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-12-10 13:30:02 +0100
committerfiaxh <git@lightrise.org>2023-12-10 15:03:02 +0100
commit384ef1d3f15c82af1a4647b0ee704f77919ff2b1 (patch)
tree64697afa8a438d77b753339691bd4247995bfef6
parent4689fcb53c3bd55411b2ada02350e6442d82fe25 (diff)
downloaddino-384ef1d3f15c82af1a4647b0ee704f77919ff2b1.tar.gz
dino-384ef1d3f15c82af1a4647b0ee704f77919ff2b1.zip
Conversation details dialog: Fix notification+block icons
-rw-r--r--main/CMakeLists.txt3
-rw-r--r--main/data/gresource.xml3
-rw-r--r--main/data/icons/scalable/status/dino-bell-large-none-symbolic.svg2
-rw-r--r--main/data/icons/scalable/status/dino-bell-large-symbolic.svg2
-rw-r--r--main/data/icons/scalable/status/dino-block-symbolic.svg7
-rw-r--r--main/src/windows/conversation_details.vala4
6 files changed, 19 insertions, 2 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 437a84b9..9a7cb189 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -39,6 +39,9 @@ set(RESOURCE_LIST
icons/scalable/mimetypes/dino-file-table-symbolic.svg
icons/scalable/mimetypes/dino-file-video-symbolic.svg
+ icons/scalable/status/dino-bell-large-none-symbolic.svg
+ icons/scalable/status/dino-bell-large-symbolic.svg
+ icons/scalable/status/dino-block-symbolic.svg
icons/scalable/status/dino-double-tick-symbolic.svg
icons/scalable/status/dino-party-popper-symbolic.svg
icons/scalable/status/dino-security-high-symbolic.svg
diff --git a/main/data/gresource.xml b/main/data/gresource.xml
index 503503c9..282838e0 100644
--- a/main/data/gresource.xml
+++ b/main/data/gresource.xml
@@ -40,6 +40,9 @@
<file>icons/scalable/mimetypes/dino-file-table-symbolic.svg</file>
<file>icons/scalable/mimetypes/dino-file-video-symbolic.svg</file>
<file>icons/scalable/status/dino-double-tick-symbolic.svg</file>
+ <file>icons/scalable/status/dino-bell-large-none-symbolic.svg</file>
+ <file>icons/scalable/status/dino-bell-large-symbolic.svg</file>
+ <file>icons/scalable/status/dino-block-symbolic.svg</file>
<file>icons/scalable/status/dino-party-popper-symbolic.svg</file>
<file>icons/scalable/status/dino-security-high-symbolic.svg</file>
<file>icons/scalable/status/dino-status-away.svg</file>
diff --git a/main/data/icons/scalable/status/dino-bell-large-none-symbolic.svg b/main/data/icons/scalable/status/dino-bell-large-none-symbolic.svg
new file mode 100644
index 00000000..b6bc8b65
--- /dev/null
+++ b/main/data/icons/scalable/status/dino-bell-large-none-symbolic.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 8 0 c -0.828125 0 -1.5 0.671875 -1.5 1.5 c 0 0.078125 0.007812 0.15625 0.019531 0.234375 c -0.871093 0.269531 -1.652343 0.773437 -2.257812 1.453125 l -2.730469 -2.730469 l -1.0625 1.0625 l 2.957031 2.957031 l 8.527344 8.523438 l 2.515625 2.519531 l 1.0625 -1.0625 l -1.570312 -1.570312 c 0.320312 -0.167969 0.539062 -0.5 0.539062 -0.886719 c 0 -0.554688 -0.445312 -1 -1 -1 h -0.5 v -4.5 c 0 -2.191406 -1.425781 -4.125 -3.519531 -4.773438 c 0.011719 -0.074218 0.019531 -0.152343 0.019531 -0.226562 c 0 -0.828125 -0.671875 -1.5 -1.5 -1.5 z m -4.988281 6.183594 c -0.007813 0.105468 -0.011719 0.210937 -0.011719 0.316406 v 4.5 h -0.5 c -0.554688 0 -1 0.445312 -1 1 s 0.445312 1 1 1 h 7.328125 z m 2.988281 7.816406 c 0 0.714844 0.382812 1.375 1 1.730469 c 0.617188 0.359375 1.382812 0.359375 2 0 c 0.617188 -0.355469 1 -1.015625 1 -1.730469 z m 0 0" fill="#222222"/></svg>
diff --git a/main/data/icons/scalable/status/dino-bell-large-symbolic.svg b/main/data/icons/scalable/status/dino-bell-large-symbolic.svg
new file mode 100644
index 00000000..86a6ca20
--- /dev/null
+++ b/main/data/icons/scalable/status/dino-bell-large-symbolic.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 8 0 c -0.828125 0 -1.5 0.671875 -1.5 1.5 c 0 0.078125 0.007812 0.152344 0.019531 0.230469 c -2.089843 0.648437 -3.515625 2.582031 -3.519531 4.769531 v 4.5 h -0.5 c -0.554688 0 -1 0.445312 -1 1 s 0.445312 1 1 1 h 11 c 0.554688 0 1 -0.445312 1 -1 s -0.445312 -1 -1 -1 h -0.5 v -4.5 c 0 -2.191406 -1.425781 -4.125 -3.519531 -4.773438 c 0.011719 -0.078124 0.019531 -0.152343 0.019531 -0.226562 c 0 -0.828125 -0.671875 -1.5 -1.5 -1.5 z m -2 14 c 0 0.714844 0.382812 1.375 1 1.734375 c 0.617188 0.355469 1.382812 0.355469 2 0 c 0.617188 -0.359375 1 -1.019531 1 -1.734375 z m 0 0" fill="#222222"/></svg>
diff --git a/main/data/icons/scalable/status/dino-block-symbolic.svg b/main/data/icons/scalable/status/dino-block-symbolic.svg
new file mode 100644
index 00000000..5e938c6d
--- /dev/null
+++ b/main/data/icons/scalable/status/dino-block-symbolic.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.1" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
+ <g fill="#222">
+ <path d="m8 1c-3.8555 0-7 3.1445-7 7s3.1445 7 7 7 7-3.1445 7-7-3.1445-7-7-7zm0 2c2.7539 0 5 2.2461 5 5s-2.2461 5-5 5-5-2.2461-5-5 2.2461-5 5-5z"/>
+ <path d="m13.616 11.83-1.4375 1.4375-9.1054-9.0769 1.543-1.3323z"/>
+ </g>
+</svg>
diff --git a/main/src/windows/conversation_details.vala b/main/src/windows/conversation_details.vala
index 099412d1..1dac02c7 100644
--- a/main/src/windows/conversation_details.vala
+++ b/main/src/windows/conversation_details.vala
@@ -64,7 +64,7 @@ namespace Dino.Ui.ConversationDetails {
}
private void update_blocked_button() {
- block_button_content.icon_name = "action-unavailable-symbolic";
+ block_button_content.icon_name = "dino-block-symbolic";
block_button_content.label = model.blocked ? _("Blocked") : _("Block");
if (model.blocked) {
block_button.add_css_class("error");
@@ -75,7 +75,7 @@ namespace Dino.Ui.ConversationDetails {
private void update_notification_button() {
string icon_name = model.notification == OFF ?
- "notifications-disabled-symbolic" : "notification-symbolic";
+ "dino-bell-large-none-symbolic" : "dino-bell-large-symbolic";
notification_button_toggle_content.icon_name = icon_name;
notification_button_split_content.icon_name = icon_name;
notification_button_menu_content.icon_name = icon_name;