summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-22 21:02:39 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-22 21:02:39 +0200
commite959443831c35f5e5478c049f007b961e55356c0 (patch)
treef949ee63fd374ad5910efc6d79280768adb50cf5 /resources/qml
parentTrade CPU usage for 30MB of members in RAM (diff)
downloadnheko-e959443831c35f5e5478c049f007b961e55356c0.tar.xz
Speed up rendering the timeline by a LOT by reducing clipping
Sadly still required for replies, otherwise this would be perfect.
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/delegates/NoticeMessage.qml2
-rw-r--r--resources/qml/delegates/TextMessage.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/delegates/NoticeMessage.qml b/resources/qml/delegates/NoticeMessage.qml

index d9a7a3e7..67a69055 100644 --- a/resources/qml/delegates/NoticeMessage.qml +++ b/resources/qml/delegates/NoticeMessage.qml
@@ -2,5 +2,5 @@ TextMessage { font.italic: true color: colors.buttonText height: isReply ? Math.min(chat.height / 8, implicitHeight) : undefined - clip: true + clip: isReply } diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
index 69f2f0e3..8a1c116e 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -7,6 +7,6 @@ MatrixText { text: "<style type=\"text/css\">a { color:" + colors.link + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap'>") width: parent ? parent.width : undefined height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined - clip: true + clip: isReply font.pointSize: (Settings.enlargeEmojiOnlyMessages && model.data.isOnlyEmoji > 0 && model.data.isOnlyEmoji < 4) ? Settings.fontSize * 3 : Settings.fontSize }