summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-09-07 01:33:46 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:14 +0100
commitbbbd5df75f97271506e366325a378f1623881f3d (patch)
treef5804d0f4cedbd8bdf0275a7fb7bde85c20570b0 /resources/qml/delegates
parentBump required Qt version to 5.8 to support Q_NAMESPACE (diff)
downloadnheko-bbbd5df75f97271506e366325a378f1623881f3d.tar.xz
Use system colors for now
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/NoticeMessage.qml12
-rw-r--r--resources/qml/delegates/TextMessage.qml1
2 files changed, 13 insertions, 0 deletions
diff --git a/resources/qml/delegates/NoticeMessage.qml b/resources/qml/delegates/NoticeMessage.qml
new file mode 100644

index 00000000..5f04d235 --- /dev/null +++ b/resources/qml/delegates/NoticeMessage.qml
@@ -0,0 +1,12 @@ +import QtQuick 2.5 + +TextEdit { + text: eventData.formattedBody + textFormat: TextEdit.RichText + readOnly: true + wrapMode: Text.Wrap + width: parent.width + selectByMouse: true + font.italic: true + color: inactiveColors.text +} diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
index 5f4b33fa..f7dba618 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml
@@ -7,4 +7,5 @@ TextEdit { wrapMode: Text.Wrap width: parent.width selectByMouse: true + color: colors.text }