mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Make sure that printer name is not empty
CURA-6435
This commit is contained in:
parent
b269dc95b0
commit
b0fd6628a5
3 changed files with 26 additions and 1 deletions
|
|
@ -37,11 +37,28 @@ TextField
|
|||
{
|
||||
return UM.Theme.getColor("setting_control_disabled_border")
|
||||
}
|
||||
if (!textField.acceptableInput)
|
||||
{
|
||||
return UM.Theme.getColor("setting_validation_error")
|
||||
}
|
||||
if (textField.hovered || textField.activeFocus)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_border_highlight")
|
||||
}
|
||||
return UM.Theme.getColor("setting_control_border")
|
||||
}
|
||||
|
||||
color:
|
||||
{
|
||||
if (!textField.enabled)
|
||||
{
|
||||
return UM.Theme.getColor("setting_control_disabled")
|
||||
}
|
||||
if (!textField.acceptableInput)
|
||||
{
|
||||
return UM.Theme.getColor("setting_validation_error_background")
|
||||
}
|
||||
return UM.Theme.getColor("setting_control")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue