From 33082a761bb758cf422fc4f4af0bf45bb2534173 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 9 Jun 2021 10:06:35 +0200 Subject: [PATCH] fix: introduce tiny icon versions and make use of them where needed Closes #128 --- .../src/StatusQ/Components/StatusChatListItem.qml | 10 +++++----- .../src/StatusQ/Controls/StatusChatInfoButton.qml | 10 +++++----- ui/StatusQ/src/assets/img/icons/tiny/SNT.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/add.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/arrow-down.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/channel-white.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/channel.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chat.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chatbot.svg | 7 +++++++ ui/StatusQ/src/assets/img/icons/tiny/checkmark.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chevron-down.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chevron-left.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chevron-right.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/chevron-up.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/clear.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/community-1.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/community.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/contact.svg | 4 ++++ .../src/assets/img/icons/tiny/double-checkmark.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/edit.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/external.svg | 4 ++++ .../src/assets/img/icons/{ => tiny}/group-white.svg | 0 ui/StatusQ/src/assets/img/icons/tiny/group.svg | 6 ++++++ .../src/assets/img/icons/tiny/message/delivered.svg | 5 +++++ .../src/assets/img/icons/tiny/message/pending.svg | 5 +++++ ui/StatusQ/src/assets/img/icons/tiny/message/sent.svg | 3 +++ .../src/assets/img/icons/tiny/message/warning.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/more.svg | 5 +++++ .../src/assets/img/icons/{ => tiny}/muted-white.svg | 0 ui/StatusQ/src/assets/img/icons/tiny/muted.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/not-secure.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/pending.svg | 5 +++++ ui/StatusQ/src/assets/img/icons/tiny/pin.svg | 4 ++++ .../assets/img/icons/{ => tiny}/public-chat-white.svg | 0 ui/StatusQ/src/assets/img/icons/tiny/public-chat.svg | 4 ++++ ui/StatusQ/src/assets/img/icons/tiny/reply.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/secure.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/settings.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/time.svg | 3 +++ .../src/assets/img/icons/tiny/tribute-to-talk.svg | 3 +++ ui/StatusQ/src/assets/img/icons/tiny/warning.svg | 3 +++ 41 files changed, 142 insertions(+), 10 deletions(-) create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/SNT.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/add.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/arrow-down.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/channel-white.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/channel.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chat.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chatbot.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/checkmark.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chevron-down.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chevron-left.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chevron-right.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/chevron-up.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/clear.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/community-1.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/community.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/contact.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/double-checkmark.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/edit.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/external.svg rename ui/StatusQ/src/assets/img/icons/{ => tiny}/group-white.svg (100%) create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/group.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/message/delivered.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/message/pending.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/message/sent.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/message/warning.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/more.svg rename ui/StatusQ/src/assets/img/icons/{ => tiny}/muted-white.svg (100%) create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/muted.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/not-secure.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/pending.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/pin.svg rename ui/StatusQ/src/assets/img/icons/{ => tiny}/public-chat-white.svg (100%) create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/public-chat.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/reply.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/secure.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/settings.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/time.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/tribute-to-talk.svg create mode 100644 ui/StatusQ/src/assets/img/icons/tiny/warning.svg diff --git a/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml b/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml index d2c7fae5e9..47ed6a853f 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml +++ b/ui/StatusQ/src/StatusQ/Components/StatusChatListItem.qml @@ -114,16 +114,16 @@ Rectangle { icon: { switch (statusChatListItem.type) { case StatusChatListItem.Type.PublicCat: - return Theme.palette.name == "light" ? "public-chat" : "public-chat-white" + return Theme.palette.name == "light" ? "tiny/public-chat" : "tiny/public-chat-white" break; case StatusChatListItem.Type.GroupChat: - return Theme.palette.name == "light" ? "group" : "group-white" + return Theme.palette.name == "light" ? "tiny/group" : "tiny/group-white" break; case StatusChatListItem.Type.CommunityChat: - return Theme.palette.name == "light" ? "channel" : "channel-white" + return Theme.palette.name == "light" ? "tiny/channel" : "tiny/channel-white" break; default: - return Theme.palette.name == "light" ? "public-chat" : "public-chat-white" + return Theme.palette.name == "light" ? "tiny/public-chat" : "tiny/public-chat-white" } } } @@ -170,7 +170,7 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter width: 14 opacity: mutedIconSensor.containsMouse ? 1.0 : 0.2 - icon: Theme.palette.name === "light" ? "muted" : "muted-white" + icon: Theme.palette.name === "light" ? "tiny/muted" : "tiny/muted-white" visible: statusChatListItem.muted MouseArea { diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml index 6867bcd7de..d7bf329a86 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusChatInfoButton.qml @@ -111,16 +111,16 @@ Rectangle { icon: { switch (statusChatInfoButton.type) { case StatusChatInfoButton.Type.PublicCat: - return "public-chat" + return "tiny/public-chat" break; case StatusChatInfoButton.Type.GroupChat: - return "group" + return "tiny/group" break; case StatusChatInfoButton.Type.CommunityChat: - return "channel" + return "tiny/channel" break; default: - return "public-chat" + return "tiny/public-chat" } } } @@ -145,7 +145,7 @@ Rectangle { anchors.top: chatName.top anchors.topMargin: -2 width: 13 - icon: "muted" + icon: "tiny/muted" color: mutedIconSensor.containsMouse ? Theme.palette.directColor1 : Theme.palette.baseColor1 visible: statusChatInfoButton.muted diff --git a/ui/StatusQ/src/assets/img/icons/tiny/SNT.svg b/ui/StatusQ/src/assets/img/icons/tiny/SNT.svg new file mode 100644 index 0000000000..34ba4135e2 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/SNT.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/add.svg b/ui/StatusQ/src/assets/img/icons/tiny/add.svg new file mode 100644 index 0000000000..251e0d6375 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/add.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/arrow-down.svg b/ui/StatusQ/src/assets/img/icons/tiny/arrow-down.svg new file mode 100644 index 0000000000..dee2d6f95d --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/arrow-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/channel-white.svg b/ui/StatusQ/src/assets/img/icons/tiny/channel-white.svg new file mode 100644 index 0000000000..86d390e443 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/channel-white.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/channel.svg b/ui/StatusQ/src/assets/img/icons/tiny/channel.svg new file mode 100644 index 0000000000..513f794e39 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/channel.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chat.svg b/ui/StatusQ/src/assets/img/icons/tiny/chat.svg new file mode 100644 index 0000000000..6f1579bc10 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chat.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chatbot.svg b/ui/StatusQ/src/assets/img/icons/tiny/chatbot.svg new file mode 100644 index 0000000000..5188e51fa9 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chatbot.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/checkmark.svg b/ui/StatusQ/src/assets/img/icons/tiny/checkmark.svg new file mode 100644 index 0000000000..84d69b85ba --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/checkmark.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chevron-down.svg b/ui/StatusQ/src/assets/img/icons/tiny/chevron-down.svg new file mode 100644 index 0000000000..e5e8c8a498 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chevron-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chevron-left.svg b/ui/StatusQ/src/assets/img/icons/tiny/chevron-left.svg new file mode 100644 index 0000000000..4457001a61 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chevron-left.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chevron-right.svg b/ui/StatusQ/src/assets/img/icons/tiny/chevron-right.svg new file mode 100644 index 0000000000..5a60abe13f --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chevron-right.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/chevron-up.svg b/ui/StatusQ/src/assets/img/icons/tiny/chevron-up.svg new file mode 100644 index 0000000000..a683f7598f --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/chevron-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/clear.svg b/ui/StatusQ/src/assets/img/icons/tiny/clear.svg new file mode 100644 index 0000000000..7ddbfafac4 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/clear.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/community-1.svg b/ui/StatusQ/src/assets/img/icons/tiny/community-1.svg new file mode 100644 index 0000000000..b42e62dcbd --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/community-1.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/community.svg b/ui/StatusQ/src/assets/img/icons/tiny/community.svg new file mode 100644 index 0000000000..52258068ef --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/community.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/contact.svg b/ui/StatusQ/src/assets/img/icons/tiny/contact.svg new file mode 100644 index 0000000000..a40ac75e39 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/contact.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/double-checkmark.svg b/ui/StatusQ/src/assets/img/icons/tiny/double-checkmark.svg new file mode 100644 index 0000000000..f93144bdc7 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/double-checkmark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/edit.svg b/ui/StatusQ/src/assets/img/icons/tiny/edit.svg new file mode 100644 index 0000000000..a9d7d98d5b --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/edit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/external.svg b/ui/StatusQ/src/assets/img/icons/tiny/external.svg new file mode 100644 index 0000000000..9c3084ff7c --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/external.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/group-white.svg b/ui/StatusQ/src/assets/img/icons/tiny/group-white.svg similarity index 100% rename from ui/StatusQ/src/assets/img/icons/group-white.svg rename to ui/StatusQ/src/assets/img/icons/tiny/group-white.svg diff --git a/ui/StatusQ/src/assets/img/icons/tiny/group.svg b/ui/StatusQ/src/assets/img/icons/tiny/group.svg new file mode 100644 index 0000000000..6a3db6c442 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/group.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/message/delivered.svg b/ui/StatusQ/src/assets/img/icons/tiny/message/delivered.svg new file mode 100644 index 0000000000..ee9024a1d8 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/message/delivered.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/message/pending.svg b/ui/StatusQ/src/assets/img/icons/tiny/message/pending.svg new file mode 100644 index 0000000000..e7ec67fd19 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/message/pending.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/message/sent.svg b/ui/StatusQ/src/assets/img/icons/tiny/message/sent.svg new file mode 100644 index 0000000000..eedeb60066 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/message/sent.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/message/warning.svg b/ui/StatusQ/src/assets/img/icons/tiny/message/warning.svg new file mode 100644 index 0000000000..28cd40ad56 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/message/warning.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/more.svg b/ui/StatusQ/src/assets/img/icons/tiny/more.svg new file mode 100644 index 0000000000..c7000b4e9f --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/more.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/muted-white.svg b/ui/StatusQ/src/assets/img/icons/tiny/muted-white.svg similarity index 100% rename from ui/StatusQ/src/assets/img/icons/muted-white.svg rename to ui/StatusQ/src/assets/img/icons/tiny/muted-white.svg diff --git a/ui/StatusQ/src/assets/img/icons/tiny/muted.svg b/ui/StatusQ/src/assets/img/icons/tiny/muted.svg new file mode 100644 index 0000000000..2564a9ea05 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/muted.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/not-secure.svg b/ui/StatusQ/src/assets/img/icons/tiny/not-secure.svg new file mode 100644 index 0000000000..377d8c4bea --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/not-secure.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/pending.svg b/ui/StatusQ/src/assets/img/icons/tiny/pending.svg new file mode 100644 index 0000000000..6c54d375b7 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/pending.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/pin.svg b/ui/StatusQ/src/assets/img/icons/tiny/pin.svg new file mode 100644 index 0000000000..7ade542649 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/pin.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/public-chat-white.svg b/ui/StatusQ/src/assets/img/icons/tiny/public-chat-white.svg similarity index 100% rename from ui/StatusQ/src/assets/img/icons/public-chat-white.svg rename to ui/StatusQ/src/assets/img/icons/tiny/public-chat-white.svg diff --git a/ui/StatusQ/src/assets/img/icons/tiny/public-chat.svg b/ui/StatusQ/src/assets/img/icons/tiny/public-chat.svg new file mode 100644 index 0000000000..92e866f248 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/public-chat.svg @@ -0,0 +1,4 @@ + + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/reply.svg b/ui/StatusQ/src/assets/img/icons/tiny/reply.svg new file mode 100644 index 0000000000..c064e7b284 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/reply.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/secure.svg b/ui/StatusQ/src/assets/img/icons/tiny/secure.svg new file mode 100644 index 0000000000..5b5a133313 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/secure.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/settings.svg b/ui/StatusQ/src/assets/img/icons/tiny/settings.svg new file mode 100644 index 0000000000..e1cbaa23b1 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/time.svg b/ui/StatusQ/src/assets/img/icons/tiny/time.svg new file mode 100644 index 0000000000..bf693e4035 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/time.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/tribute-to-talk.svg b/ui/StatusQ/src/assets/img/icons/tiny/tribute-to-talk.svg new file mode 100644 index 0000000000..c42a6683dd --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/tribute-to-talk.svg @@ -0,0 +1,3 @@ + + + diff --git a/ui/StatusQ/src/assets/img/icons/tiny/warning.svg b/ui/StatusQ/src/assets/img/icons/tiny/warning.svg new file mode 100644 index 0000000000..028109e157 --- /dev/null +++ b/ui/StatusQ/src/assets/img/icons/tiny/warning.svg @@ -0,0 +1,3 @@ + + +