Skip to content

Commit

Permalink
Properly implement divider between unified search field and results
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 18, 2024
1 parent 6638873 commit 20e2bd7
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -697,32 +697,30 @@ ApplicationWindow {
}

ColumnLayout { // Unified search
spacing: 0

UnifiedSearchInputContainer {
id: trayWindowUnifiedSearchInputContainer

Layout.fillWidth: true
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 {
Expand Down

0 comments on commit 20e2bd7

Please sign in to comment.