Merge branch 'master' into CURA-6435_new_style_add_machine

This commit is contained in:
Lipu Fei 2019-04-10 09:06:55 +02:00 committed by GitHub
commit 0e49d3dc12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 222 additions and 157 deletions

View file

@ -48,12 +48,22 @@ TextField
background: Rectangle
{
id: backgroundRectangle
anchors.fill: parent
anchors.margins: Math.round(UM.Theme.getSize("default_lining").width)
radius: UM.Theme.getSize("setting_control_radius").width
border.color: UM.Theme.getColor("setting_control_border")
color: UM.Theme.getColor("setting_control")
border.color:
{
if (!textField.enabled)
{
return UM.Theme.getColor("setting_control_disabled_border")
}
if (textField.hovered || textField.activeFocus)
{
return UM.Theme.getColor("setting_control_border_highlight")
}
return UM.Theme.getColor("setting_control_border")
}
}
}