mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:45:55 +08:00
Use background instead of contentItem
This way the padding and such doesn't matter any more. And the original background disappears, which was unthemed and still behind the original contentItem. Contributes to issue CURA-5876.
This commit is contained in:
parent
c6a9aca346
commit
89126c7323
@ -15,11 +15,8 @@ Button
|
|||||||
signal activateConfiguration()
|
signal activateConfiguration()
|
||||||
|
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
padding: 0 //Stupid QML button has spacing by default.
|
|
||||||
rightPadding: 0
|
|
||||||
leftPadding: 0
|
|
||||||
|
|
||||||
contentItem: Rectangle
|
background: Rectangle
|
||||||
{
|
{
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
color: parent.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
color: parent.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user