mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -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
|
@ -91,12 +91,12 @@ UM.TooltipArea
|
|||
{
|
||||
anchors.fill: parent
|
||||
|
||||
borderColor: (textFieldWithUnit.hovered || textFieldWithUnit.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
|
||||
borderColor: textFieldWithUnit.activeFocus ? UM.Theme.getColor("text_field_border_active") : "transparent"
|
||||
liningColor:
|
||||
{
|
||||
if (!textFieldWithUnit.enabled)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_disabled_border")
|
||||
return UM.Theme.getColor("setting_control_disabled_border");
|
||||
}
|
||||
switch (propertyProvider.properties.validationState)
|
||||
{
|
||||
|
@ -109,11 +109,15 @@ UM.TooltipArea
|
|||
return UM.Theme.getColor("setting_validation_warning")
|
||||
}
|
||||
// Validation is OK.
|
||||
if (textFieldWithUnit.hovered || textFieldWithUnit.activeFocus)
|
||||
if(textFieldWithUnit.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(textFieldWithUnit.hovered)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_hovered");
|
||||
}
|
||||
return UM.Theme.getColor("border_field_light");
|
||||
}
|
||||
|
||||
color:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue