mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07: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
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
Cura.ActionButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
id: goToCustom
|
id: goToCustom
|
||||||
visible: popupItem.configuration_method === "auto"
|
visible: popupItem.configuration_method === "auto"
|
||||||
|
|
@ -159,18 +159,13 @@ Cura.ExpandableComponent
|
||||||
top: parent.top
|
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")
|
iconSource: UM.Theme.getIcon("arrow_right")
|
||||||
iconOnRightSide: true
|
iconOnRightSide: true
|
||||||
|
|
||||||
onClicked: popupItem.configuration_method = "custom"
|
onClicked: popupItem.configuration_method = "custom"
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.ActionButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
id: goToAuto
|
id: goToAuto
|
||||||
visible: popupItem.configuration_method === "custom"
|
visible: popupItem.configuration_method === "custom"
|
||||||
|
|
@ -182,11 +177,6 @@ Cura.ExpandableComponent
|
||||||
top: parent.top
|
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")
|
iconSource: UM.Theme.getIcon("arrow_left")
|
||||||
|
|
||||||
onClicked: popupItem.configuration_method = "auto"
|
onClicked: popupItem.configuration_method = "auto"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue