fix(StatusCommunityTag): fix StatusCommunityTag and and ETH icon (#734)

This commit is contained in:
Mikhail Rogachev 2022-06-20 18:09:38 +03:00 committed by Michał Cieślak
parent 2bb0a67754
commit 0a36c4c88d
5 changed files with 14 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Rectangle {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: root.clicked()
}
@ -32,7 +33,7 @@ Rectangle {
anchors.centerIn: parent
StatusEmoji {
emojiId: root.emoji != "" ? Emoji.iconId(root.emoji) : ""
emojiId: root.emoji != "" ? Emoji.iconHex(root.emoji) : ""
anchors.verticalCenter: parent.verticalCenter
}

View File

@ -48,6 +48,10 @@ QtObject {
const match = parsed.match('src=".*\/(.+?).svg');
return (match && match.length >= 2) ? match[1] : undefined;
}
// NOTE: doing the same thing as iconId but without checking Twemoji internal checks
function iconHex(text) {
return text.codePointAt(0).toString(16);
}
function fromCodePoint(value) {
return Twemoji.twemoji.convert.fromCodePoint(value)
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">
<path d="M17.9962 1.51313L7.87688 18.3056L17.9962 13.7063V1.51313Z" fill="#8A92B2"/>
<path d="M17.9962 13.7063L7.87688 18.3056L17.9962 24.2888V13.7063Z" fill="#62688F"/>
<path d="M28.1175 18.3056L17.9962 1.51313V13.7063L28.1175 18.3056Z" fill="#62688F"/>
<path d="M17.9962 24.2888L28.1175 18.3056L17.9962 13.7063V24.2888Z" fill="#454A75"/>
<path d="M7.87688 20.2256L17.9962 34.4869V26.205L7.87688 20.2256Z" fill="#8A92B2"/>
<path d="M17.9962 26.205V34.4869L28.1231 20.2256L17.9962 26.205Z" fill="#62688F"/>
</svg>

After

Width:  |  Height:  |  Size: 575 B