summary refs log tree commit diff
path: root/resources/qml/RoomList.qml
diff options
context:
space:
mode:
authorMalte E <malte.e@mailbox.org>2022-02-18 21:06:28 +0100
committerMalte E <malte.e@mailbox.org>2022-02-18 21:06:28 +0100
commit144e7cd038dee3b1dd1cce740a6debb16fa2b797 (patch)
treea44f231fc89ba8113567d13738b292cd36bf8fce /resources/qml/RoomList.qml
parentMerge pull request #945 from tastytea/fix-bubble-highlight (diff)
downloadnheko-144e7cd038dee3b1dd1cce740a6debb16fa2b797.tar.xz
make search usable on mobile
Diffstat (limited to 'resources/qml/RoomList.qml')
-rw-r--r--resources/qml/RoomList.qml18
1 files changed, 18 insertions, 0 deletions
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
@@ -680,6 +680,24 @@ Page {
                     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
+                    hoverEnabled: true
+                    ripple: false
+                    width: 22
+                    height: 22
                     image: ":/icons/icons/ui/settings.svg"
                     ToolTip.visible: hovered
                     ToolTip.delay: Nheko.tooltipDelay