From ebfc20d4b4b5feb5a5e7d867a7887b12fb0fac29 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 30 Oct 2024 22:24:20 -0400 Subject: [PATCH] ExploreRoomsPage: Add better text to the "Enter a room address" button This adds a short explanatory label to the "Enter a room address" button in this list, in case the user does not know where to find their room address. Also changes the name of the button to "Enter a Room Manually" to refer that you can enter aliases here as well. --- src/qml/ExploreRoomsPage.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/qml/ExploreRoomsPage.qml b/src/qml/ExploreRoomsPage.qml index e049208b5..379c5f841 100644 --- a/src/qml/ExploreRoomsPage.qml +++ b/src/qml/ExploreRoomsPage.qml @@ -87,13 +87,21 @@ SearchPage { } listHeaderDelegate: Delegates.RoundedItemDelegate { + id: delegate + onClicked: _private.openManualRoomDialog() activeFocusOnTab: false // We handle moving to this item via up/down arrows, otherwise the tab order is wacky - text: i18n("Enter a room address") + text: i18n("Enter a Room Manually") icon.name: "compass" icon.width: Kirigami.Units.gridUnit * 2 icon.height: Kirigami.Units.gridUnit * 2 + + contentItem: Kirigami.IconTitleSubtitle { + icon: icon.fromControlsIcon(delegate.icon) + title: delegate.text + subtitle: i18n("If you already know a room's address or alias, and it isn't shown here.") + } } listFooterDelegate: QQC2.ProgressBar {