Commit 41e92ee9 authored by Nate Graham's avatar Nate Graham
Browse files

[wallpapers/image] Port placeholder messages to Kirigami.PlaceholderMessage

parent 15f0b117
...@@ -313,16 +313,11 @@ ColumnLayout { ...@@ -313,16 +313,11 @@ ColumnLayout {
] ]
} }
Kirigami.Heading { Kirigami.PlaceholderMessage {
anchors.fill: parent anchors.centerIn: parent
anchors.margins: Kirigami.Units.largeSpacing width: parent.width - (Kirigami.Units.largeSpacing * 4)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
visible: slidePathsView.count === 0 visible: slidePathsView.count === 0
level: 2
text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpaper locations configured") text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpaper locations configured")
opacity: 0.3
} }
} }
} }
...@@ -353,7 +348,6 @@ ColumnLayout { ...@@ -353,7 +348,6 @@ ColumnLayout {
id: thumbnailsComponent id: thumbnailsComponent
KCM.GridView { KCM.GridView {
id: wallpapersGrid id: wallpapersGrid
anchors.fill: parent
property var imageModel: (configDialog.currentWallpaper == "org.kde.image")? imageWallpaper.wallpaperModel : imageWallpaper.slideFilterModel property var imageModel: (configDialog.currentWallpaper == "org.kde.image")? imageWallpaper.wallpaperModel : imageWallpaper.slideFilterModel
function resetCurrentIndex() { function resetCurrentIndex() {
...@@ -372,18 +366,13 @@ ColumnLayout { ...@@ -372,18 +366,13 @@ ColumnLayout {
color: cfg_Color color: cfg_Color
} }
Kirigami.Heading { Kirigami.PlaceholderMessage {
anchors.fill: parent anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing anchors.margins: Kirigami.Units.largeSpacing * 2
// FIXME: this is needed to vertically center it in the grid for some reason // FIXME: this is needed to vertically center it in the grid for some reason
anchors.topMargin: wallpapersGrid.height anchors.topMargin: wallpapersGrid.height / 2
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WordWrap
visible: wallpapersGrid.view.count === 0 visible: wallpapersGrid.view.count === 0
level: 2
text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpapers in this slideshow") text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpapers in this slideshow")
opacity: 0.3
} }
} }
} }
......
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