From 3a284e3c2c4297fbcec325be8eb2d5972c3797bc Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 30 Nov 2021 14:50:45 +0100 Subject: [PATCH] Show hover colour when hovering a card This signals to the user they can select one. Contributes to issue CURA-8565. --- plugins/Marketplace/resources/qml/Packages.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/Marketplace/resources/qml/Packages.qml b/plugins/Marketplace/resources/qml/Packages.qml index f0d6f508cc..3c627aef32 100644 --- a/plugins/Marketplace/resources/qml/Packages.qml +++ b/plugins/Marketplace/resources/qml/Packages.qml @@ -62,9 +62,11 @@ ListView delegate: MouseArea { + id: cardMouseArea width: parent ? parent.width : 0 height: childrenRect.height + hoverEnabled: true onClicked: { packages.selectedPackage = model.package; @@ -75,6 +77,7 @@ ListView { packageData: model.package width: parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width + color: cardMouseArea.containsMouse ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("main_background") } }