mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06: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
1 changed files with 1 additions and 4 deletions
|
@ -15,11 +15,8 @@ Button
|
|||
signal activateConfiguration()
|
||||
|
||||
height: childrenRect.height
|
||||
padding: 0 //Stupid QML button has spacing by default.
|
||||
rightPadding: 0
|
||||
leftPadding: 0
|
||||
|
||||
contentItem: Rectangle
|
||||
background: Rectangle
|
||||
{
|
||||
height: childrenRect.height
|
||||
color: parent.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("action_button")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue