mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Use border only on active state
Contributes to issue CURA-9217.
This commit is contained in:
parent
35f5c3f959
commit
97e2d6a432
8 changed files with 65 additions and 29 deletions
|
@ -125,18 +125,22 @@ SettingItem
|
|||
}
|
||||
return UM.Theme.getColor("setting_control")
|
||||
}
|
||||
borderColor: (base.hovered || control.activeFocus) ? UM.Theme.getSize("text_field_border_hovered") : "transparent"
|
||||
borderColor: control.activeFocus ? UM.Theme.getSize("text_field_border_active") : "transparent"
|
||||
liningColor:
|
||||
{
|
||||
if (!enabled)
|
||||
if(!enabled)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_disabled_border")
|
||||
return UM.Theme.getColor("setting_control_disabled_border");
|
||||
}
|
||||
if (base.hovered || control.activeFocus)
|
||||
if(control.activeFocus)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_hovered")
|
||||
return UM.Theme.getColor("text_field_border_active");
|
||||
}
|
||||
return UM.Theme.getColor("border_field_light")
|
||||
if(base.hovered)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_hovered");
|
||||
}
|
||||
return UM.Theme.getColor("border_field_light");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue