mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-20 10:01:43 +08:00
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:
parent
1c73077f7e
commit
e4710dd921
@ -167,12 +167,16 @@ Button
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle
|
background: Cura.RoundedRectangle
|
||||||
{
|
{
|
||||||
id: backgroundRect
|
id: backgroundRect
|
||||||
color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor
|
color: button.enabled ? (button.hovered ? button.hoverColor : button.color) : button.disabledColor
|
||||||
border.width: UM.Theme.getSize("default_lining").width
|
border.width: UM.Theme.getSize("default_lining").width
|
||||||
border.color: button.enabled ? (button.hovered ? button.outlineHoverColor : button.outlineColor) : button.outlineDisabledColor
|
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
|
Cura.ToolTip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user