From 2685eec6c7c7f05a5454a8100dd04d3abf565794 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 5 Mar 2021 17:22:42 +0100 Subject: [PATCH] Mark message currently being edited --- resources/qml/TimelineRow.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml index 57d5d0ef..9d46e7ae 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml @@ -86,7 +86,7 @@ Item { } Image { - visible: model.isEdited + visible: model.isEdited || model.id == chat.model.edit Layout.alignment: Qt.AlignRight | Qt.AlignTop Layout.preferredHeight: 16 Layout.preferredWidth: 16 @@ -94,7 +94,7 @@ Item { width: 16 sourceSize.width: 16 sourceSize.height: 16 - source: "image://colorimage/:/icons/icons/ui/edit.png?" + colors.buttonText + source: "image://colorimage/:/icons/icons/ui/edit.png?" + ((model.id == chat.model.edit) ? colors.highlight : colors.buttonText) ToolTip.visible: editHovered.hovered ToolTip.text: qsTr("Edited")