summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorlkito <lkiti17@freeuni.edu.ge>2020-05-16 01:27:41 +0400
committerlkito <lkiti17@freeuni.edu.ge>2020-05-16 17:15:43 +0400
commit2c21f6e3fa6d876e594178fe826d7f2de299a6cf (patch)
tree733a4b600930eddaf4a26e8a8af756059699aee9 /resources/qml
parentBump mtxclient version (diff)
downloadnheko-2c21f6e3fa6d876e594178fe826d7f2de299a6cf.tar.xz
Implemented optional message body highlighting feature.
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineRow.qml6
-rw-r--r--resources/qml/TimelineView.qml2
2 files changed, 7 insertions, 1 deletions
diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml

index 8dcd0056..42791e0b 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml
@@ -13,6 +13,7 @@ MouseArea { height: row.height propagateComposedEvents: true preventStealing: true + hoverEnabled: true acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { @@ -23,7 +24,10 @@ MouseArea { if (mouse.source === Qt.MouseEventNotSynthesized) messageContextMenu.show(model.id, model.type, model.isEncrypted, row) } - + Rectangle { + color: (timelineSettings.message_hover_highlight && parent.containsMouse) ? colors.base : "transparent" + anchors.fill: row + } RowLayout { id: row diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 15cafd8c..b5097bc7 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -32,6 +32,7 @@ Page { id: timelineSettings category: "user/timeline" property bool buttons: true + property bool message_hover_highlight: false } Menu { @@ -97,6 +98,7 @@ Page { } BusyIndicator { + visible: running anchors.centerIn: parent running: timelineManager.isInitialSync height: 200