mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
Update SettingTextField to match TextField
CURA-8991
This commit is contained in:
parent
7dabcfafb0
commit
1eb16c0ec5
2 changed files with 5 additions and 7 deletions
|
@ -36,7 +36,7 @@ SettingItem
|
||||||
{
|
{
|
||||||
if(!enabled)
|
if(!enabled)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("setting_control_disabled_border")
|
return UM.Theme.getColor("text_field_border_disabled")
|
||||||
}
|
}
|
||||||
switch(propertyProvider.properties.validationState)
|
switch(propertyProvider.properties.validationState)
|
||||||
{
|
{
|
||||||
|
@ -52,15 +52,15 @@ SettingItem
|
||||||
//Validation is OK.
|
//Validation is OK.
|
||||||
if(hovered || input.activeFocus)
|
if(hovered || input.activeFocus)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("border_main")
|
return UM.Theme.getColor("text_field_border_hovered")
|
||||||
}
|
}
|
||||||
return UM.Theme.getColor("border_field_light")
|
return UM.Theme.getColor("text_field_border")
|
||||||
}
|
}
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
if(!enabled)
|
if(!enabled)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("setting_control_disabled")
|
return UM.Theme.getColor("text_field")
|
||||||
}
|
}
|
||||||
switch(propertyProvider.properties.validationState)
|
switch(propertyProvider.properties.validationState)
|
||||||
{
|
{
|
||||||
|
@ -76,7 +76,7 @@ SettingItem
|
||||||
return UM.Theme.getColor("setting_validation_ok")
|
return UM.Theme.getColor("setting_validation_ok")
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return UM.Theme.getColor("setting_control")
|
return UM.Theme.getColor("text_field")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -355,8 +355,6 @@
|
||||||
"text_field_text": "text_default",
|
"text_field_text": "text_default",
|
||||||
"text_field_text_disabled": "text_disabled",
|
"text_field_text_disabled": "text_disabled",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"category_background": "background_2",
|
"category_background": "background_2",
|
||||||
|
|
||||||
"tooltip": [25, 25, 25, 255],
|
"tooltip": [25, 25, 25, 255],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue