ActionButton is a RoundedRectangle once more.

We want to deprecate the API, not break it (yet).

part of CURA-8012
This commit is contained in:
Remco Burema 2021-07-06 09:06:47 +02:00
parent 1c73077f7e
commit e4710dd921
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C

View File

@ -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