mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Show hover colour when hovering a card
This signals to the user they can select one. Contributes to issue CURA-8565.
This commit is contained in:
parent
7529483cb0
commit
c48c449354
1 changed files with 3 additions and 0 deletions
|
@ -63,9 +63,11 @@ ListView
|
|||
|
||||
delegate: MouseArea
|
||||
{
|
||||
id: cardMouseArea
|
||||
width: parent ? parent.width : 0
|
||||
height: childrenRect.height
|
||||
|
||||
hoverEnabled: true
|
||||
onClicked:
|
||||
{
|
||||
packages.selectedPackage = model.package;
|
||||
|
@ -76,6 +78,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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue