Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112912
Reaction.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
Reaction.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Controls
2.15
import
org
.
kde
.
kirigami
2.13
as
Kirigami
import
'.'
as
Types
import
moe
.
kazv
.
mxc
.
kazv
0.0
as
MK
Types
.
TextTemplate
{
id: upper
text:
getText
()
textFormat:
Qt
.
RichText
Kirigami
.
Icon
{
source:
'star-new-symbolic'
Layout.preferredHeight:
inlineBadgeSize
Layout.preferredWidth:
inlineBadgeSize
}
function
getText
()
{
const
key
=
event
.
content
[
'm.relates_to'
]
?
event
.
content
[
'm.relates_to'
].
key
:
(
event
.
originalSource
.
content
[
'm.relates_to'
]
?
event
.
originalSource
.
content
[
'm.relates_to'
].
key :
''
)
||
''
;
// Qt cannot render coloured emojis by default
// https://bugreports.qt.io/browse/QTBUG-85744
return
l10n
.
get
(
'event-reacted-with'
,
{
key:
'<span style="font-family: emoji, sans-serif;">'
+
MK
.
KazvUtil
.
escapeHtml
(
key
)
+
'</span>'
});
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 2:48 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39290
Default Alt Text
Reaction.qml (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment