Fix button spacing

This commit is contained in:
Loren Burkholder 2021-06-12 21:18:31 -04:00 committed by Nicolas Werner
parent 9fd70c34f9
commit e95659811d
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
2 changed files with 4 additions and 3 deletions

View File

@ -26,6 +26,7 @@ AbstractButton {
// Workaround, can't get icon.source working for now...
anchors.fill: parent
source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : ""
fillMode: Image.PreserveAspectFit
}
CursorShape {

View File

@ -543,7 +543,7 @@ Page {
anchors.margins: Nheko.paddingMedium
ImageButton {
Layout.alignment: Qt.AlignBottom | Qt.AlignLeft
Layout.fillWidth: true
hoverEnabled: true
width: 22
height: 22
@ -572,7 +572,7 @@ Page {
ImageButton {
visible: !collapsed
Layout.alignment: Qt.AlignBottom | Qt.AlignHCenter
Layout.fillWidth: true
hoverEnabled: true
width: 22
height: 22
@ -584,7 +584,7 @@ Page {
ImageButton {
visible: !collapsed
Layout.alignment: Qt.AlignBottom | Qt.AlignRight
Layout.fillWidth: true
hoverEnabled: true
width: 22
height: 22