mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:18:58 +08:00
Fix hovering the setting box
The 'hovered' property was taken from the example of the setting item, but that doesn't exist apparently. I looked up how it is normally done in QML. Contributes to issue CURA-3161.
This commit is contained in:
parent
27ff55d75b
commit
78fed0531d
@ -192,7 +192,7 @@ Column
|
||||
id: preheatTemperatureControl
|
||||
color: UM.Theme.getColor("setting_validation_ok")
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
border.color: hovered ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border")
|
||||
border.color: mouseArea.containsMouse ? UM.Theme.getColor("setting_control_border_highlight") : UM.Theme.getColor("setting_control_border")
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
anchors.bottom: parent.bottom
|
||||
@ -219,6 +219,7 @@ Column
|
||||
MouseArea //Change cursor on hovering.
|
||||
{
|
||||
id: mouseArea
|
||||
hoverEnabled: true
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.IBeamCursor
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user