From 5fc369cc6f0547fc38435492581adb4783d04163 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 13 Oct 2020 02:33:54 +0300 Subject: Display quotes in different font --- qml/Message.qml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'qml/Message.qml') diff --git a/qml/Message.qml b/qml/Message.qml index 0723546..3936e4e 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -61,9 +61,21 @@ RowLayout { Loader { sourceComponent: messageObject.message.viewtype == 20 ? imageMessageView : textMessageView } + + TextEdit { + Layout.maximumWidth: messageObject.width > 30 ? messageObject.width - 30 : messageObject.width + text: messageObject.message.quotedText ? messageObject.message.quotedText : "" + textFormat: Text.PlainText + selectByMouse: true + readOnly: true + color: "grey" + wrapMode: Text.Wrap + font.pixelSize: 12 + } + TextEdit { Layout.maximumWidth: messageObject.width > 30 ? messageObject.width - 30 : messageObject.width - text: (messageObject.message.quotedText ? "> " + messageObject.message.quotedText + "\n\n" : "") + messageObject.message.text + text: messageObject.message.text textFormat: Text.PlainText selectByMouse: true readOnly: true -- cgit v1.2.3-70-g09d2