diff options
author | link2xt <link2xt@testrun.org> | 2020-10-13 02:33:54 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2020-10-13 02:33:54 +0300 |
commit | 5fc369cc6f0547fc38435492581adb4783d04163 (patch) | |
tree | 08ffb907bcb09ef822ebd0e4fd0ff90852c5ca5c /qml/Message.qml | |
parent | 5006c1932ffe0c4f114b2e24c907dffb881ed455 (diff) | |
download | kdeltachat-5fc369cc6f0547fc38435492581adb4783d04163.tar.gz kdeltachat-5fc369cc6f0547fc38435492581adb4783d04163.zip |
Display quotes in different font
Diffstat (limited to 'qml/Message.qml')
-rw-r--r-- | qml/Message.qml | 14 |
1 files changed, 13 insertions, 1 deletions
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 |