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

View file

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