Skip to content
Snippets Groups Projects
Commit d645c436 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Add highlight on hover

parent 8ca1b93a
No related branches found
No related tags found
No related merge requests found
......@@ -59,13 +59,18 @@ ApplicationWindow {
model: readReceipts
delegate: ItemDelegate {
id: del
onClicked: room.openUserProfile(model.mxid)
padding: Nheko.paddingMedium
width: receiptLayout.implicitWidth
width: ListView.view.width
height: receiptLayout.implicitHeight
hoverEnabled: true
ToolTip.visible: hovered
ToolTip.text: model.mxid
background: Rectangle {
color: del.hovered ? Nheko.colors.dark : readReceiptsRoot.color
}
RowLayout {
id: receiptLayout
......
......@@ -92,8 +92,9 @@ ApplicationWindow {
padding: Nheko.paddingMedium
width: ListView.view.width
height: memberLayout.implicitHeight
hoverEnabled: true
background: Rectangle {
color: roomMembersRoot.color
color: del.hovered ? Nheko.colors.dark : roomMembersRoot.color
}
RowLayout {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment