Conversation details dialog: Fix notification+block icons

This commit is contained in:
fiaxh 2023-12-10 13:30:02 +01:00
parent 4689fcb53c
commit 384ef1d3f1
6 changed files with 19 additions and 2 deletions

View file

@ -39,6 +39,9 @@ set(RESOURCE_LIST
icons/scalable/mimetypes/dino-file-table-symbolic.svg icons/scalable/mimetypes/dino-file-table-symbolic.svg
icons/scalable/mimetypes/dino-file-video-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-double-tick-symbolic.svg
icons/scalable/status/dino-party-popper-symbolic.svg icons/scalable/status/dino-party-popper-symbolic.svg
icons/scalable/status/dino-security-high-symbolic.svg icons/scalable/status/dino-security-high-symbolic.svg

View file

@ -40,6 +40,9 @@
<file>icons/scalable/mimetypes/dino-file-table-symbolic.svg</file> <file>icons/scalable/mimetypes/dino-file-table-symbolic.svg</file>
<file>icons/scalable/mimetypes/dino-file-video-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-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-party-popper-symbolic.svg</file>
<file>icons/scalable/status/dino-security-high-symbolic.svg</file> <file>icons/scalable/status/dino-security-high-symbolic.svg</file>
<file>icons/scalable/status/dino-status-away.svg</file> <file>icons/scalable/status/dino-status-away.svg</file>

View file

@ -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>

After

Width:  |  Height:  |  Size: 1,007 B

View file

@ -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>

After

Width:  |  Height:  |  Size: 734 B

View file

@ -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>

After

Width:  |  Height:  |  Size: 369 B

View file

@ -64,7 +64,7 @@ namespace Dino.Ui.ConversationDetails {
} }
private void update_blocked_button() { 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"); block_button_content.label = model.blocked ? _("Blocked") : _("Block");
if (model.blocked) { if (model.blocked) {
block_button.add_css_class("error"); block_button.add_css_class("error");
@ -75,7 +75,7 @@ namespace Dino.Ui.ConversationDetails {
private void update_notification_button() { private void update_notification_button() {
string icon_name = model.notification == OFF ? 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_toggle_content.icon_name = icon_name;
notification_button_split_content.icon_name = icon_name; notification_button_split_content.icon_name = icon_name;
notification_button_menu_content.icon_name = icon_name; notification_button_menu_content.icon_name = icon_name;