mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 14:15:56 +08: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
8162bdcfa8
commit
3a284e3c2c
@ -62,9 +62,11 @@ ListView
|
|||||||
|
|
||||||
delegate: MouseArea
|
delegate: MouseArea
|
||||||
{
|
{
|
||||||
|
id: cardMouseArea
|
||||||
width: parent ? parent.width : 0
|
width: parent ? parent.width : 0
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
packages.selectedPackage = model.package;
|
packages.selectedPackage = model.package;
|
||||||
@ -75,6 +77,7 @@ ListView
|
|||||||
{
|
{
|
||||||
packageData: model.package
|
packageData: model.package
|
||||||
width: parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width
|
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…
x
Reference in New Issue
Block a user