Fix button spacing
This commit is contained in:
parent
9fd70c34f9
commit
e95659811d
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user