mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Scale the back button down
The hit area is still the same size, though.
This commit is contained in:
parent
474e3d6e2a
commit
e116ebe1ac
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue