New style highlighting on borders

CURA-8688
This commit is contained in:
j.delarago 2022-02-28 14:56:07 +01:00
parent 83661ebd7f
commit ce86e025d9
5 changed files with 11 additions and 10 deletions

View file

@ -26,21 +26,18 @@ ComboBox
{
name: "disabled"
when: !control.enabled
PropertyChanges { target: backgroundRectangle; color: UM.Theme.getColor("setting_control_disabled")}
PropertyChanges { target: background; color: UM.Theme.getColor("setting_control_disabled")}
PropertyChanges { target: contentLabel; color: UM.Theme.getColor("setting_control_disabled_text")}
},
State
{
name: "highlighted"
when: control.hovered || control.activeFocus
PropertyChanges { target: backgroundRectangle; color: UM.Theme.getColor("setting_control_highlight")}
PropertyChanges { target: background; liningColor: UM.Theme.getColor("border_main_light")}
}
]
background: UM.UnderlineBackground
{
id: backgroundRectangle
}
background: UM.UnderlineBackground{}
indicator: UM.RecolorImage
{

View file

@ -38,7 +38,7 @@ RadioButton
{
name: "highlighted"
when: radioButton.hovered || radioButton.activeFocus
PropertyChanges { target: indicator; border.color: UM.Theme.getColor("accent_1")}
PropertyChanges { target: indicator; border.color: UM.Theme.getColor("border_main_light")}
}
]

View file

@ -43,6 +43,7 @@ TextField
{
name: "hovered"
when: textField.hovered || textField.activeFocus
PropertyChanges { target: backgroundRectangle; liningColor: UM.Theme.getColor("border_main_light")}
}
]