From 20e2bd79e0f8aa7f921dbf9f3c311965ac6ca5db Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 18 Nov 2024 16:08:46 +0800 Subject: [PATCH] Properly implement divider between unified search field and results Signed-off-by: Claudio Cambra --- src/gui/tray/MainWindow.qml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index 19ac21fae778..617cb6ddb6cd 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -697,6 +697,8 @@ ApplicationWindow { } ColumnLayout { // Unified search + spacing: 0 + UnifiedSearchInputContainer { id: trayWindowUnifiedSearchInputContainer @@ -704,25 +706,21 @@ ApplicationWindow { Layout.topMargin: Style.trayHorizontalMargin Layout.leftMargin: Style.trayHorizontalMargin Layout.rightMargin: Style.trayHorizontalMargin + Layout.bottomMargin: Style.trayHorizontalMargin text: UserModel.currentUser.unifiedSearchResultsListModel.searchTerm readOnly: !UserModel.currentUser.isConnected || UserModel.currentUser.unifiedSearchResultsListModel.currentFetchMoreInProgressProviderId isSearchInProgress: UserModel.currentUser.unifiedSearchResultsListModel.isSearchInProgress onTextEdited: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = trayWindowUnifiedSearchInputContainer.text } onClearText: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = "" } + } - // TODO: consult designers, this line looks weird atm - // Rectangle { - // id: bottomUnifiedSearchInputSeparator - - // anchors.left: parent.left - // anchors.right: parent.right - // anchors.bottom: parent.bottom - - // height: 1 - // color: Style.menuBorder - // visible: trayWindowMainItem.isUnifiedSearchActive - // } + Rectangle { + id: bottomUnifiedSearchInputSeparator + Layout.fillWidth: true + height: 1 + color: Style.menuBorder + visible: trayWindowMainItem.isUnifiedSearchActive } ErrorBox {