mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Show a border around text fields and drop-downs when hovering
And when they are focused. This applies to the setting text fields, extruder selectors and drop-downs as well as to the machine settings. Contributes to issue CURA-9217.
This commit is contained in:
parent
efdb21b7a1
commit
7fda81b678
9 changed files with 26 additions and 11 deletions
|
@ -126,15 +126,16 @@ SettingItem
|
|||
}
|
||||
return UM.Theme.getColor("setting_control")
|
||||
}
|
||||
borderColor: (base.hovered || control.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
|
||||
liningColor:
|
||||
{
|
||||
if (!enabled)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_disabled_border")
|
||||
}
|
||||
if (control.hovered || control.activeFocus)
|
||||
if (base.hovered || control.activeFocus)
|
||||
{
|
||||
return UM.Theme.getColor("border_main")
|
||||
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