diff --git a/resources.qrc b/resources.qrc index 3733a5a73a710..9d1da12609314 100644 --- a/resources.qrc +++ b/resources.qrc @@ -38,6 +38,7 @@ src/gui/tray/UnifiedSearchResultItemSkeletonGradientRectangle.qml src/gui/tray/UnifiedSearchResultListItem.qml src/gui/tray/UnifiedSearchResultNothingFound.qml + src/gui/tray/UnifiedSearchPlaceholderView.qml src/gui/tray/UnifiedSearchResultSectionItem.qml src/gui/tray/ActivityItemContextMenu.qml src/gui/tray/ActivityItemActions.qml diff --git a/src/gui/tray/UnifiedSearchPlaceholderView.qml b/src/gui/tray/UnifiedSearchPlaceholderView.qml new file mode 100644 index 0000000000000..2653223e19344 --- /dev/null +++ b/src/gui/tray/UnifiedSearchPlaceholderView.qml @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 by Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +import QtQml +import QtQuick +import QtQuick.Controls +import QtQuick.Layouts +import Style + +ColumnLayout { + id: unifiedSearchResultNothingFoundContainer + + spacing: Style.standardSpacing + + Item { + Layout.fillWidth: true + Layout.fillHeight: true + } + + Image { + id: unifiedSearchResultsNoResultsLabelIcon + source: "image://svgimage-custom-color/magnifying-glass.svg" + sourceSize.width: Style.trayWindowHeaderHeight / 2 + sourceSize.height: Style.trayWindowHeaderHeight / 2 + Layout.alignment: Qt.AlignHCenter + } + + EnforcedPlainTextLabel { + id: unifiedSearchResultsNoResultsLabel + text: qsTr("Start typing to search") + font.pixelSize: Style.subLinePixelSize * 1.25 + wrapMode: Text.Wrap + Layout.fillWidth: true + horizontalAlignment: Text.AlignHCenter + } + + Item { + Layout.fillWidth: true + Layout.fillHeight: true + } +}