Commit 091e1bc8 authored by Nate Graham's avatar Nate Graham
Browse files

Port sidebar placeholder message to Kirigami.PlaceholderMessage

parent f0684748
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
import QtQuick 2.5 import QtQuick 2.5
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls 2.5 as QQC2
import QtQuick.Layouts 1.1 import QtQuick.Layouts 1.1
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.14 as Kirigami
import org.kde.systemsettings 1.0 import org.kde.systemsettings 1.0
Kirigami.ScrollablePage { Kirigami.ScrollablePage {
...@@ -92,13 +92,11 @@ Kirigami.ScrollablePage { ...@@ -92,13 +92,11 @@ Kirigami.ScrollablePage {
Kirigami.Theme.colorSet: Kirigami.Theme.View Kirigami.Theme.colorSet: Kirigami.Theme.View
color: Kirigami.Theme.backgroundColor color: Kirigami.Theme.backgroundColor
} }
Kirigami.Heading { Kirigami.PlaceholderMessage {
anchors.centerIn: parent anchors.centerIn: parent
width: parent.width * 0.7 width: parent.width - (Kirigami.Units.gridUnit * 4)
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
text: i18nc("A search yielded no results", "No items matching your search") text: i18nc("A search yielded no results", "No items matching your search")
opacity: categoryView.count == 0 ? 0.3 : 0 opacity: categoryView.count == 0 ? 1 : 0
Behavior on opacity { Behavior on opacity {
OpacityAnimator { OpacityAnimator {
duration: Kirigami.Units.longDuration duration: Kirigami.Units.longDuration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment