From 144e7cd038dee3b1dd1cce740a6debb16fa2b797 Mon Sep 17 00:00:00 2001 From: Malte E Date: Fri, 18 Feb 2022 21:06:28 +0100 Subject: make search usable on mobile --- resources/qml/RoomList.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'resources/qml/RoomList.qml') diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index da205950..b1d09eb1 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -673,6 +673,24 @@ Page { } } + ImageButton { + visible: !collapsed + Layout.fillWidth: true + hoverEnabled: true + ripple: false + width: 22 + height: 22 + image: ":/icons/icons/ui/search.svg" + ToolTip.visible: hovered + ToolTip.delay: Nheko.tooltipDelay + ToolTip.text: qsTr("Search rooms (Ctrl+K)") + Layout.margins: Nheko.paddingMedium + onClicked: { + var quickSwitch = quickSwitcherComponent.createObject(timelineRoot); + quickSwitch.open(); + } + } + ImageButton { visible: !collapsed Layout.fillWidth: true -- cgit 1.5.1