Correct colours for the selected configuration

This should always be the same as the ExpandableComponent's background, so white when it's not active and light blue when it's active, regardless of theme.
The naming of this theme entry is a bit weird because the ActionButton theme is used for ExpandableComponent and now for ConfigurationItem as well, but that's why we should NEVER name these theme entries to something specific to one item. Oh well, I'm not about to refactor that now with all the branches going on everywhere.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-27 12:51:52 +01:00
parent a2b1f53979
commit e58409b1ef
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -22,7 +22,7 @@ Button
contentItem: Rectangle
{
height: childrenRect.height
color: parent.checked ? UM.Theme.getColor("configuration_item_active") : UM.Theme.getColor("configuration_item")
color: parent.checked ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
border.color: (parent.checked || parent.hovered) ? UM.Theme.getColor("primary") : UM.Theme.getColor("lining")
border.width: UM.Theme.getSize("default_lining").width