From 0a36c4c88d3d78c813849fbb3e906fed501cfff1 Mon Sep 17 00:00:00 2001 From: Mikhail Rogachev Date: Mon, 20 Jun 2022 18:09:38 +0300 Subject: [PATCH] fix(StatusCommunityTag): fix StatusCommunityTag and and ETH icon (#734) --- .../src/StatusQ/Controls/StatusCommunityTag.qml | 3 ++- ui/StatusQ/src/StatusQ/Core/Utils/Emoji.qml | 4 ++++ ui/StatusQ/src/assets/twemoji/26x26/39e.png | Bin 0 -> 730 bytes ui/StatusQ/src/assets/twemoji/72x72/39e.png | Bin 0 -> 1722 bytes ui/StatusQ/src/assets/twemoji/svg/39e.svg | 8 ++++++++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 ui/StatusQ/src/assets/twemoji/26x26/39e.png create mode 100644 ui/StatusQ/src/assets/twemoji/72x72/39e.png create mode 100644 ui/StatusQ/src/assets/twemoji/svg/39e.svg diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusCommunityTag.qml b/ui/StatusQ/src/StatusQ/Controls/StatusCommunityTag.qml index d2afbde10a..f5ebe71c68 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusCommunityTag.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusCommunityTag.qml @@ -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 } diff --git a/ui/StatusQ/src/StatusQ/Core/Utils/Emoji.qml b/ui/StatusQ/src/StatusQ/Core/Utils/Emoji.qml index 695b91d46c..bebbb472b3 100644 --- a/ui/StatusQ/src/StatusQ/Core/Utils/Emoji.qml +++ b/ui/StatusQ/src/StatusQ/Core/Utils/Emoji.qml @@ -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) } diff --git a/ui/StatusQ/src/assets/twemoji/26x26/39e.png b/ui/StatusQ/src/assets/twemoji/26x26/39e.png new file mode 100644 index 0000000000000000000000000000000000000000..f9a90680c3f382d66fe7d690326732b39b005537 GIT binary patch literal 730 zcmV<00ww*4P)Xl)!)YA6!#|+g&6|@GUfk-%c%nO@Go&SrVJFysFz4dIlXy1) zV?ssL^=AK->3xZ)~v4wtJ0)@JU|U_r5dE4Oa0 zzkg$eiIX5KT(>A9u<6}om@pxX^K-L2M=uH?5TALlkO>pZO*Fq$RDh6^Eza2yjtm zW*0R0AEJK*;0Ge42MHsPs8;~k#qjgTE^KdA;ahD7TCM#PM-E{iKf{p#NRbiL>w8fD zWdp{zZTnoUwXc#S!f<35Mk1F$lq8_m=|Wyz^~&daG90!J^+vM^_HN^tpdXIoLSwJl z9uZ17Iy%CHan;M$vvjG9E`PGB?|OGJ2&|N~?>koFuBLDk6%5s0$v;X_iu-hG!2r%sw~sYzq@AjJ(NV#qC)3_vK|nObyYD;rzvCDqyc(^=2b z5^F(u1`@T&%+eYV6z|R}8{55RtJB9oa2=|ygOl`$JewTUm(WB{)TD)(^7?^5rG2qD zQt*HH9zVQo5Cp3|ONHen)!>Z}_0Mp@al0k--r;G2NuGWZQgB}J7sx{NBJfc;W&i*H M07*qoM6N<$f&_3wE&u=k literal 0 HcmV?d00001 diff --git a/ui/StatusQ/src/assets/twemoji/72x72/39e.png b/ui/StatusQ/src/assets/twemoji/72x72/39e.png new file mode 100644 index 0000000000000000000000000000000000000000..08300cfd52b31cd27086691eb1d45eff4c8fc3e4 GIT binary patch literal 1722 zcmV;r21WUaP)ST`1Fmq_4#0$K@io!%fJ)UkYmB}|AG)V01~Q^iG-tI`*dq(yXBYxo3d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=K`r}ywpI5`&}l!qx!Mi)t4=JbJG(= z!0yLk2GYEjm|6I?%XLWCQ(!;UtkAsZ@38PqAew4G`aP&MRna%RM(K9(btCyr(kXOl ztZBa=i}L+hjaxUaWHEvwI0eI|pQ+VB$kRUU2{tFGrqQYe0uUn5oEj&8u>I1n3rMXF z!k#$1H9fIur}UGtSdQ21U_S_bsMkj6*Kh<bQ+K{81 Q2mk;807*qoM6N<$f|D*NZ~y=R literal 0 HcmV?d00001 diff --git a/ui/StatusQ/src/assets/twemoji/svg/39e.svg b/ui/StatusQ/src/assets/twemoji/svg/39e.svg new file mode 100644 index 0000000000..51ae437f78 --- /dev/null +++ b/ui/StatusQ/src/assets/twemoji/svg/39e.svg @@ -0,0 +1,8 @@ + + + + + + + +