mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Re-use SecondaryButton instead of setting colours ourselves
It has a pre-defined theme. Contributes to issue CURA-5876.
This commit is contained in:
parent
7df4c01814
commit
c8cb3a094a
1 changed files with 2 additions and 12 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue