From e4710dd921245d031074a53e10f11c98d7844e02 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 6 Jul 2021 09:06:47 +0200 Subject: [PATCH] ActionButton is a RoundedRectangle once more. We want to deprecate the API, not break it (yet). part of CURA-8012 --- resources/qml/ActionButton.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/qml/ActionButton.qml b/resources/qml/ActionButton.qml index 1593ee931c..31d5c35d2c 100644 --- a/resources/qml/ActionButton.qml +++ b/resources/qml/ActionButton.qml @@ -167,12 +167,16 @@ Button } } - background: Rectangle + background: Cura.RoundedRectangle { id: backgroundRect color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor border.width: UM.Theme.getSize("default_lining").width border.color: button.enabled ? (button.hovered ? button.outlineHoverColor : button.outlineColor) : button.outlineDisabledColor + + // Disable the rounded-ness of this rectangle. We can't use a normal Rectangle here yet, as the API/SDK has only just been deprecated. + radius: 0 + cornerSide: Cura.RoundedRectangle.Direction.None } Cura.ToolTip