Implement switching in narrow mode

This commit is contained in:
Nicolas Werner 2021-06-08 22:18:51 +02:00
parent 686298e023
commit d364c29c43
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 109 additions and 77 deletions

View file

@ -11,6 +11,8 @@ import im.nheko 1.0
Rectangle {
id: topBar
property bool showBackButton: false
Layout.fillWidth: true
implicitHeight: topLayout.height + Nheko.paddingMedium * 2
z: 3
@ -43,11 +45,11 @@ Rectangle {
Layout.alignment: Qt.AlignVCenter
width: Nheko.avatarSize
height: Nheko.avatarSize
visible: TimelineManager.isNarrowView
visible: showBackButton
image: ":/icons/icons/ui/angle-pointing-to-left.png"
ToolTip.visible: hovered
ToolTip.text: qsTr("Back to room list")
onClicked: TimelineManager.backToRooms()
onClicked: Rooms.resetCurrentRoom()
}
Avatar {