Remove weird padding from button

I don't know why the default Button has padding everywhere, but I don't want it.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-27 11:43:32 +01:00
parent e05566865a
commit 6876c12106
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -15,6 +15,9 @@ Button
signal activateConfiguration()
height: childrenRect.height
padding: 0 //Stupid QML button has spacing by default.
rightPadding: 0
leftPadding: 0
property var textColor: checked ? UM.Theme.getColor("configuration_item_text_active") : UM.Theme.getColor("configuration_item_text")
@ -73,7 +76,8 @@ Button
height: childrenRect.height
visible: configuration.buildplateConfiguration != ""
UM.RecolorImage {
UM.RecolorImage
{
id: buildplateIcon
anchors.left: parent.left
width: UM.Theme.getSize("main_window_header_button_icon").width