mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
Add a UnifiedSearchPlaceholderView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
baedf1502e
commit
5fdc8a236f
2 changed files with 53 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
<file>src/gui/tray/UnifiedSearchResultItemSkeletonGradientRectangle.qml</file>
|
||||
<file>src/gui/tray/UnifiedSearchResultListItem.qml</file>
|
||||
<file>src/gui/tray/UnifiedSearchResultNothingFound.qml</file>
|
||||
<file>src/gui/tray/UnifiedSearchPlaceholderView.qml</file>
|
||||
<file>src/gui/tray/UnifiedSearchResultSectionItem.qml</file>
|
||||
<file>src/gui/tray/ActivityItemContextMenu.qml</file>
|
||||
<file>src/gui/tray/ActivityItemActions.qml</file>
|
||||
|
|
52
src/gui/tray/UnifiedSearchPlaceholderView.qml
Normal file
52
src/gui/tray/UnifiedSearchPlaceholderView.qml
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Copyright (C) 2024 by Claudio Cambra <claudio.cambra@nextcloud.com>
|
||||
*
|
||||
* 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue