diff --git a/src/StatusQ/Components/StatusChatListItem.qml b/src/StatusQ/Components/StatusChatListItem.qml index f6ed56fe..d82903b9 100644 --- a/src/StatusQ/Components/StatusChatListItem.qml +++ b/src/StatusQ/Components/StatusChatListItem.qml @@ -28,8 +28,9 @@ Rectangle { width: 24 height: 24 color: Theme.palette.miscColor5 - letterSize: emoji ? 14 : 15 + letterSize: emoji ? 10 : 15 emoji: "" + emojiSize: Emoji.size.verySmall charactersLen: 1 } property int type: StatusChatListItem.Type.PublicChat diff --git a/src/StatusQ/Components/StatusLetterIdenticon.qml b/src/StatusQ/Components/StatusLetterIdenticon.qml index 6531cf2a..eec520a6 100644 --- a/src/StatusQ/Components/StatusLetterIdenticon.qml +++ b/src/StatusQ/Components/StatusLetterIdenticon.qml @@ -9,6 +9,7 @@ Rectangle { property alias identiconText: identiconText property string name property string emoji + property string emojiSize property int letterSize: 21 property int charactersLen: 1 @@ -35,7 +36,7 @@ Rectangle { if(Utils.isHtml(emoji)) return emoji else - return Emoji.parse(emoji) + return Emoji.parse(emoji, emojiSize || undefined) } const shift = (root.name.charAt(0) === "#") || diff --git a/src/StatusQ/Components/StatusListItemBadge.qml b/src/StatusQ/Components/StatusListItemBadge.qml index 3e21caf9..ba6a7f13 100644 --- a/src/StatusQ/Components/StatusListItemBadge.qml +++ b/src/StatusQ/Components/StatusListItemBadge.qml @@ -57,6 +57,8 @@ Control { visible: root.icon.isLetterIdenticon color: root.icon.color name: root.primaryText + emoji: root.icon.emoji + emojiSize: root.icon.emojiSize } StatusBaseText { font.weight: Font.Medium diff --git a/src/StatusQ/Components/StatusSmartIdenticon.qml b/src/StatusQ/Components/StatusSmartIdenticon.qml index a3b7557c..6c1f7b71 100644 --- a/src/StatusQ/Components/StatusSmartIdenticon.qml +++ b/src/StatusQ/Components/StatusSmartIdenticon.qml @@ -85,6 +85,7 @@ Loader { color: statusSmartIdenticon.icon.color name: statusSmartIdenticon.name emoji: statusSmartIdenticon.icon.emoji + emojiSize: statusSmartIdenticon.icon.emojiSize letterSize: statusSmartIdenticon.icon.letterSize identiconText.color: statusSmartIdenticon.icon.textColor charactersLen: statusSmartIdenticon.icon.charactersLen diff --git a/src/StatusQ/Core/StatusIconSettings.qml b/src/StatusQ/Core/StatusIconSettings.qml index 6f5606a1..dcba3c5f 100644 --- a/src/StatusQ/Core/StatusIconSettings.qml +++ b/src/StatusQ/Core/StatusIconSettings.qml @@ -16,5 +16,6 @@ QtObject { property int letterSize property int charactersLen property string emoji + property string emojiSize property StatusIconBackgroundSettings background: StatusIconBackgroundSettings {} } diff --git a/src/StatusQ/Core/Utils/Emoji.qml b/src/StatusQ/Core/Utils/Emoji.qml index b5738970..2dc3e457 100644 --- a/src/StatusQ/Core/Utils/Emoji.qml +++ b/src/StatusQ/Core/Utils/Emoji.qml @@ -8,9 +8,11 @@ import "./emojiList.js" as EmojiJSON QtObject { readonly property var size: { + "veryBig": "86x86", "big": "72x72", "middle": "32x32", - "small": "18x18" + "small": "18x18", + "verySmall": "16x16" } property string base: Qt.resolvedUrl("../../../assets/twemoji/") function parse(text, renderSize = size.small) {