Re-use SecondaryButton instead of setting colours ourselves

It has a pre-defined theme.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-03 11:52:10 +01:00
parent 7df4c01814
commit c8cb3a094a
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -147,7 +147,7 @@ Cura.ExpandableComponent
width: parent.width
height: childrenRect.height
Cura.ActionButton
Cura.SecondaryButton
{
id: goToCustom
visible: popupItem.configuration_method === "auto"
@ -159,18 +159,13 @@ Cura.ExpandableComponent
top: parent.top
}
color: UM.Theme.getColor("secondary")
hoverColor: UM.Theme.getColor("secondary")
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.getIcon("arrow_right")
iconOnRightSide: true
onClicked: popupItem.configuration_method = "custom"
}
Cura.ActionButton
Cura.SecondaryButton
{
id: goToAuto
visible: popupItem.configuration_method === "custom"
@ -182,11 +177,6 @@ Cura.ExpandableComponent
top: parent.top
}
color: UM.Theme.getColor("secondary")
hoverColor: UM.Theme.getColor("secondary")
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.getIcon("arrow_left")
onClicked: popupItem.configuration_method = "auto"