Files
neochat/imports/Spectral/Component/Timeline/TextDelegate.qml
Carl Schwan a77a133415 Clean look of Timeline
Align everything to the left, add colors to user names, remove some
hardcoded value in favor of Kirigami.Theme and Kirigami.Units.
2020-11-07 16:24:13 +01:00

15 lines
341 B
QML

import QtQuick 2.12
import org.kde.kirigami 2.4 as Kirigami
Text {
text: "<style>pre {white-space: pre-wrap} a{color: " + Kirigami.Theme.linkColor + ";} .user-pill{}</style>" + display
font.family: Kirigami.Theme.defaultFont.family + ", emoji"
wrapMode: Text.WordWrap
width: parent.width
textFormat: Text.RichText
}