From de66e61e4ad339a6a7b4e582c5560851a1d7c9f0 Mon Sep 17 00:00:00 2001
From: Joseph Donofry <joedonofry@gmail.com>
Date: Wed, 17 Nov 2021 22:35:17 -0500
Subject: [PATCH] Fix redaction message to use fluent icon

---
 io.github.NhekoReborn.Nheko.yaml            |  4 --
 resources/icons/ui/delete.svg               |  1 +
 resources/qml/EncryptionIndicator.qml       |  7 ---
 resources/qml/delegates/MessageDelegate.qml |  2 +-
 resources/res.qrc                           | 68 +--------------------
 5 files changed, 3 insertions(+), 79 deletions(-)
 create mode 100644 resources/icons/ui/delete.svg

diff --git a/io.github.NhekoReborn.Nheko.yaml b/io.github.NhekoReborn.Nheko.yaml
index 8398e1dc1..a252da7ad 100644
--- a/io.github.NhekoReborn.Nheko.yaml
+++ b/io.github.NhekoReborn.Nheko.yaml
@@ -166,12 +166,8 @@ modules:
       - mkdir -p /app/bin/
       - cp libqtjdenticon.so /app/bin/
     sources:
-<<<<<<< HEAD
-      - commit: 77eb0d62441e03bbbfc2b1d2057c4045ac87fb85
-=======
       - commit: e58c14369dfbf008c63f43a4556b2e52232e0265
         tag: v0.1.0
->>>>>>> nheko-im/master
         type: git
         url: https://github.com/Nheko-Reborn/qt-jdenticon.git
   - buildsystem: meson
diff --git a/resources/icons/ui/delete.svg b/resources/icons/ui/delete.svg
new file mode 100644
index 000000000..c21b5f3ad
--- /dev/null
+++ b/resources/icons/ui/delete.svg
@@ -0,0 +1 @@
+<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.5 6a1 1 0 0 1-.883.993L20.5 7h-.845l-1.231 12.52A2.75 2.75 0 0 1 15.687 22H8.313a2.75 2.75 0 0 1-2.737-2.48L4.345 7H3.5a1 1 0 0 1 0-2h5a3.5 3.5 0 1 1 7 0h5a1 1 0 0 1 1 1Zm-7.25 3.25a.75.75 0 0 0-.743.648L13.5 10v7l.007.102a.75.75 0 0 0 1.486 0L15 17v-7l-.007-.102a.75.75 0 0 0-.743-.648Zm-4.5 0a.75.75 0 0 0-.743.648L9 10v7l.007.102a.75.75 0 0 0 1.486 0L10.5 17v-7l-.007-.102a.75.75 0 0 0-.743-.648ZM12 3.5A1.5 1.5 0 0 0 10.5 5h3A1.5 1.5 0 0 0 12 3.5Z" fill="#212121"/></svg>
\ No newline at end of file
diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml
index 2c208a53d..0bd0dfa19 100644
--- a/resources/qml/EncryptionIndicator.qml
+++ b/resources/qml/EncryptionIndicator.qml
@@ -40,17 +40,10 @@ Image {
             case Crypto.TOFU:
                 return sourceUrl + Nheko.colors.buttonText;
             default:
-<<<<<<< HEAD
-                return "image://colorimage/:/icons/icons/ui/lock.png?" + Nheko.theme.error;
-            }
-        } else {
-            return "image://colorimage/:/icons/icons/ui/unlock.png?" + Nheko.theme.error;
-=======
                 return sourceUrl + Nheko.theme.error;
             }
         } else {
             return sourceUrl + Nheko.theme.error;
->>>>>>> nheko-im/master
         }
     }
     ToolTip.visible: ma.hovered
diff --git a/resources/qml/delegates/MessageDelegate.qml b/resources/qml/delegates/MessageDelegate.qml
index 90dc90198..f0a1d9578 100644
--- a/resources/qml/delegates/MessageDelegate.qml
+++ b/resources/qml/delegates/MessageDelegate.qml
@@ -184,7 +184,7 @@ Item {
                         Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
                         Layout.preferredWidth: fontMetrics.font.pixelSize
                         Layout.preferredHeight: fontMetrics.font.pixelSize
-                        source: "image://colorimage/:/icons/icons/ui/trash.svg?" + Nheko.colors.text
+                        source: "image://colorimage/:/icons/icons/ui/delete.svg?" + Nheko.colors.text
                     }
                     Label {
                         id: redactedLabel
diff --git a/resources/res.qrc b/resources/res.qrc
index 1c7a49c0d..b673062dd 100644
--- a/resources/res.qrc
+++ b/resources/res.qrc
@@ -1,72 +1,6 @@
 <RCC>
     <qresource prefix="/icons">
         <file>icons/ui/sticky-note-solid.svg</file>
-<<<<<<< HEAD
-        <file>icons/ui/smile.png</file>
-        <file>icons/ui/smile@2x.png</file>
-        <file>icons/ui/speech-bubbles-comment-option.png</file>
-        <file>icons/ui/speech-bubbles-comment-option@2x.png</file>
-        <file>icons/ui/vertical-ellipsis.png</file>
-        <file>icons/ui/vertical-ellipsis@2x.png</file>
-        <file>icons/ui/power-button-off.png</file>
-        <file>icons/ui/power-button-off@2x.png</file>
-        <file>icons/ui/plus-black-symbol.png</file>
-        <file>icons/ui/plus-black-symbol@2x.png</file>
-        <file>icons/ui/add-square-button.png</file>
-        <file>icons/ui/add-square-button@2x.png</file>
-        <file>icons/ui/cloud-storage-uploading-option.png</file>
-        <file>icons/ui/cloud-storage-uploading-option@2x.png</file>
-        <file>icons/ui/paper-clip-outline.png</file>
-        <file>icons/ui/paper-clip-outline@2x.png</file>
-        <file>icons/ui/angle-pointing-to-left.png</file>
-        <file>icons/ui/angle-pointing-to-left@2x.png</file>
-        <file>icons/ui/angle-arrow-down.png</file>
-        <file>icons/ui/angle-arrow-down@2x.png</file>
-        <file>icons/ui/arrow-pointing-down.png</file>
-        <file>icons/ui/arrow-pointing-down@2x.png</file>
-        <file>icons/ui/play-sign.png</file>
-        <file>icons/ui/play-sign@2x.png</file>
-        <file>icons/ui/pause-symbol.png</file>
-        <file>icons/ui/pause-symbol@2x.png</file>
-        <file>icons/ui/remove-symbol.png</file>
-        <file>icons/ui/remove-symbol@2x.png</file>
-        <file>icons/ui/world.png</file>
-        <file>icons/ui/world@2x.png</file>
-        <file>icons/ui/tag.png</file>
-        <file>icons/ui/tag@2x.png</file>
-        <file>icons/ui/star.png</file>
-        <file>icons/ui/star@2x.png</file>
-        <file>icons/ui/lowprio.png</file>
-        <file>icons/ui/lowprio@2x.png</file>
-        <file>icons/ui/edit.png</file>
-        <file>icons/ui/edit@2x.png</file>
-        <file>icons/ui/mail-reply.png</file>
-        <file>icons/ui/place-call.png</file>
-        <file>icons/ui/end-call.png</file>
-        <file>icons/ui/microphone-mute.png</file>
-        <file>icons/ui/microphone-unmute.png</file>
-        <file>icons/ui/screen-share.png</file>
-        <file>icons/ui/toggle-camera-view.png</file>
-        <file>icons/ui/video-call.png</file>
-        <file>icons/ui/refresh.png</file>
-        <file>icons/ui/trash.svg</file>
-        <file>icons/emoji-categories/people.png</file>
-        <file>icons/emoji-categories/people@2x.png</file>
-        <file>icons/emoji-categories/nature.png</file>
-        <file>icons/emoji-categories/nature@2x.png</file>
-        <file>icons/emoji-categories/foods.png</file>
-        <file>icons/emoji-categories/foods@2x.png</file>
-        <file>icons/emoji-categories/activity.png</file>
-        <file>icons/emoji-categories/activity@2x.png</file>
-        <file>icons/emoji-categories/travel.png</file>
-        <file>icons/emoji-categories/travel@2x.png</file>
-        <file>icons/emoji-categories/objects.png</file>
-        <file>icons/emoji-categories/objects@2x.png</file>
-        <file>icons/emoji-categories/symbols.png</file>
-        <file>icons/emoji-categories/symbols@2x.png</file>
-        <file>icons/emoji-categories/flags.png</file>
-        <file>icons/emoji-categories/flags@2x.png</file>
-=======
         <file>icons/ui/add-square-button.svg</file>
         <file>icons/ui/send.svg</file>
         <file>icons/ui/smile.svg</file>
@@ -105,6 +39,7 @@
         <file>icons/ui/image-failed.svg</file>
         <file>icons/ui/dismiss.svg</file>
         <file>icons/ui/download.svg</file>
+        <file>icons/ui/delete.svg</file>
         <file>icons/emoji-categories/activity.svg</file>
         <file>icons/emoji-categories/flags.svg</file>
         <file>icons/emoji-categories/foods.svg</file>
@@ -117,7 +52,6 @@
         <file>icons/ui/shield-filled-exclamation-mark.svg</file>
         <file>icons/ui/shield-filled-checkmark.svg</file>
         <file>icons/ui/shield-filled-cross.svg</file>
->>>>>>> nheko-im/master
     </qresource>
     <qresource prefix="/logos">
         <file>nheko.png</file>
-- 
GitLab