Scale the back button down

The hit area is still the same size, though.
This commit is contained in:
Loren Burkholder 2021-04-02 16:40:03 -04:00
parent 474e3d6e2a
commit e116ebe1ac
2 changed files with 2 additions and 0 deletions

View file

@ -15,6 +15,7 @@ AbstractButton {
property color highlightColor: Nheko.colors.highlight property color highlightColor: Nheko.colors.highlight
property color buttonTextColor: Nheko.colors.buttonText property color buttonTextColor: Nheko.colors.buttonText
property bool changeColorOnHover: true property bool changeColorOnHover: true
property alias imageScale: buttonImg.scale
focusPolicy: Qt.NoFocus focusPolicy: Qt.NoFocus
width: 16 width: 16

View file

@ -54,6 +54,7 @@ Rectangle {
width: Nheko.avatarSize width: Nheko.avatarSize
height: Nheko.avatarSize height: Nheko.avatarSize
visible: showBackButton 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" image: ":/icons/icons/ui/angle-pointing-to-left.png"
ToolTip.visible: hovered ToolTip.visible: hovered
ToolTip.text: qsTr("Back to room list") ToolTip.text: qsTr("Back to room list")