summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-06-12 21:18:31 -0400
committerNicolas Werner <nicolas.werner@hotmail.de>2021-06-13 03:25:37 +0200
commite95659811d6ce9bb08cd11b0275d5d31f4b4a1da (patch)
tree11d1b42e1d9f92977c48670605bb8a2e26ddd43c
parentLayout 1.15 -> 1.12 (diff)
downloadnheko-e95659811d6ce9bb08cd11b0275d5d31f4b4a1da.tar.xz
Fix button spacing
-rw-r--r--resources/qml/ImageButton.qml1
-rw-r--r--resources/qml/RoomList.qml6
2 files changed, 4 insertions, 3 deletions
diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml

index 60954bfd..b5d9c152 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml
@@ -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 { diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 92073a37..76680b37 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml
@@ -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