Use border only on active state

Contributes to issue CURA-9217.
This commit is contained in:
Ghostkeeper 2022-05-10 16:03:47 +02:00
parent 35f5c3f959
commit 97e2d6a432
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
8 changed files with 65 additions and 29 deletions

View file

@ -31,12 +31,22 @@ ComboBox
},
State
{
name: "highlighted"
when: base.hovered || control.hovered || control.activeFocus
name: "active"
when: control.activeFocus
PropertyChanges
{
target: background
borderColor: UM.Theme.getColor("text_field_border_active")
liningColor: UM.Theme.getColor("text_field_border_active")
}
},
State
{
name: "highlighted"
when: (base.hovered || control.hovered) && !control.activeFocus
PropertyChanges
{
target: background
borderColor: UM.Theme.getColor("text_field_border_hovered")
liningColor: UM.Theme.getColor("text_field_border_hovered")
}
}