mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07: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
|
|
@ -32,12 +32,12 @@ SettingItem
|
|||
|
||||
anchors.fill: parent
|
||||
|
||||
borderColor: (hovered || input.activeFocus) ? UM.Theme.getColor("text_field_border_hovered") : "transparent"
|
||||
borderColor: input.activeFocus ? UM.Theme.getColor("text_field_border_active") : "transparent"
|
||||
liningColor:
|
||||
{
|
||||
if(!enabled)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_disabled")
|
||||
return UM.Theme.getColor("text_field_border_disabled");
|
||||
}
|
||||
switch(propertyProvider.properties.validationState)
|
||||
{
|
||||
|
|
@ -51,11 +51,15 @@ SettingItem
|
|||
return UM.Theme.getColor("setting_validation_warning");
|
||||
}
|
||||
//Validation is OK.
|
||||
if(hovered || input.activeFocus)
|
||||
if(input.activeFocus)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_hovered")
|
||||
return UM.Theme.getColor("text_field_border_active");
|
||||
}
|
||||
return UM.Theme.getColor("text_field_border")
|
||||
if(hovered)
|
||||
{
|
||||
return UM.Theme.getColor("text_field_border_hovered");
|
||||
}
|
||||
return UM.Theme.getColor("text_field_border");
|
||||
}
|
||||
|
||||
color: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue