From a50074362eeb6e1fdb8fa68556d410e2ed2280d2 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 19 Nov 2024 14:03:20 +0800 Subject: [PATCH] Place unified search placeholder view in main tray window view when in focus and no text is entered Signed-off-by: Claudio Cambra --- src/gui/tray/MainWindow.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index d3d096038138f..3f80f58c6d1cb 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -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