Skip to content

Commit

Permalink
Place unified search placeholder view in main tray window view when i…
Browse files Browse the repository at this point in the history
…n focus and no text is entered

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Nov 21, 2024
1 parent 5fdc8a2 commit a500743
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,18 @@ ApplicationWindow {
anchors.margins: Style.trayHorizontalMargin
}

UnifiedSearchPlaceholderView {
id: unifiedSearchPlaceholderView

anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.bottom: trayWindowMainItem.bottom
anchors.topMargin: Style.trayHorizontalMargin

visible: trayWindowUnifiedSearchInputContainer.activateSearchFocus && !UserModel.currentUser.unifiedSearchResultsListModel.searchTerm
}

UnifiedSearchResultNothingFound {
id: unifiedSearchResultNothingFound

Expand Down

0 comments on commit a500743

Please sign in to comment.