From e116ebe1acb23cf7597123fc73b42d9b7b251d8d Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 2 Apr 2021 16:40:03 -0400 Subject: [PATCH] Scale the back button down The hit area is still the same size, though. --- resources/qml/ImageButton.qml | 1 + resources/qml/TopBar.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index b5d9c152..61d4dcc1 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -15,6 +15,7 @@ AbstractButton { property color highlightColor: Nheko.colors.highlight property color buttonTextColor: Nheko.colors.buttonText property bool changeColorOnHover: true + property alias imageScale: buttonImg.scale focusPolicy: Qt.NoFocus width: 16 diff --git a/resources/qml/TopBar.qml b/resources/qml/TopBar.qml index 05c61d99..d6738088 100644 --- a/resources/qml/TopBar.qml +++ b/resources/qml/TopBar.qml @@ -54,6 +54,7 @@ Rectangle { width: Nheko.avatarSize height: Nheko.avatarSize visible: showBackButton + imageScale: 0.5 // because this image at full scale looks huge, tacky and distracting image: ":/icons/icons/ui/angle-pointing-to-left.png" ToolTip.visible: hovered ToolTip.text: qsTr("Back to room list")