aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-10-13 02:33:54 +0300
committerlink2xt <link2xt@testrun.org>2020-10-13 02:33:54 +0300
commit5fc369cc6f0547fc38435492581adb4783d04163 (patch)
tree08ffb907bcb09ef822ebd0e4fd0ff90852c5ca5c
parent5006c1932ffe0c4f114b2e24c907dffb881ed455 (diff)
downloadkdeltachat-5fc369cc6f0547fc38435492581adb4783d04163.tar.gz
kdeltachat-5fc369cc6f0547fc38435492581adb4783d04163.zip
Display quotes in different font
-rw-r--r--qml/Message.qml14
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