fix(StatusCommunityTag): fix StatusCommunityTag and and ETH icon (#734)
This commit is contained in:
parent
2186259c06
commit
7b35be6691
|
@ -24,6 +24,7 @@ Rectangle {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: root.clicked()
|
onClicked: root.clicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ Rectangle {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
StatusEmoji {
|
StatusEmoji {
|
||||||
emojiId: root.emoji != "" ? Emoji.iconId(root.emoji) : ""
|
emojiId: root.emoji != "" ? Emoji.iconHex(root.emoji) : ""
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,10 @@ QtObject {
|
||||||
const match = parsed.match('src=".*\/(.+?).svg');
|
const match = parsed.match('src=".*\/(.+?).svg');
|
||||||
return (match && match.length >= 2) ? match[1] : undefined;
|
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) {
|
function fromCodePoint(value) {
|
||||||
return Twemoji.twemoji.convert.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 |
|
@ -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 |
Loading…
Reference in New Issue