summary refs log tree commit diff
path: root/resources/qml/delegates/TextMessage.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-02 01:29:05 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:07 +0200
commit54e2295c214874a316d22eaedaf5c2db17b59df0 (patch)
tree2c88e09be38e2758dfcd3fe6732da484f99d94c5 /resources/qml/delegates/TextMessage.qml
parentFirst runnable qt6 Nheko (diff)
downloadnheko-54e2295c214874a316d22eaedaf5c2db17b59df0.tar.xz
Fix palette access and QMediaPlayer errors
Diffstat (limited to 'resources/qml/delegates/TextMessage.qml')
-rw-r--r--resources/qml/delegates/TextMessage.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml

index eb46a9ac..39e8b1a8 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -19,15 +19,15 @@ MatrixText { // table border-collapse doesn't seem to work text: " <style type=\"text/css\"> - a { color:" + Nheko.colors.link + ";} - code { background-color: " + Nheko.colors.alternateBase + "; white-space: pre-wrap; } - pre { background-color: " + Nheko.colors.alternateBase + "; white-space: pre-wrap; } + a { color:" + palette.link + ";} + code { background-color: " + palette.alternateBase + "; white-space: pre-wrap; } + pre { background-color: " + palette.alternateBase + "; white-space: pre-wrap; } table { border-width: 1px; border-collapse: collapse; border-style: solid; - border-color: " + Nheko.colors.text + "; - background-color: " + Nheko.colors.alternateBase + "; + border-color: " + palette.text + "; + background-color: " + palette.alternateBase + "; } table th, table td { @@ -36,11 +36,11 @@ MatrixText { blockquote { margin-left: 1em; } " + (!Settings.mobileMode ? "span[data-mx-spoiler] { color: transparent; - background-color: " + Nheko.colors.text + "; + background-color: " + palette.text + "; }" : "") + // TODO(Nico): Figure out how to support mobile "</style> " + formatted.replace(/<del>/g, "<s>").replace(/<\/del>/g, "</s>").replace(/<strike>/g, "<s>").replace(/<\/strike>/g, "</s>") - width: parent.width + width: parent?.width ?? 0 height: !keepFullText ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : implicitHeight clip: !keepFullText selectByMouse: !Settings.mobileMode && !isReply