launcher/wallpaper: add placeholder

This commit is contained in:
2 * r + 2 * t 2025-09-03 22:59:47 +10:00
parent e405bf8d5a
commit 0dc75259fe

View file

@ -8,7 +8,7 @@ import Quickshell
import Quickshell.Widgets
import QtQuick
StyledRect {
Item {
id: root
required property FileSystemEntry modelData
@ -46,17 +46,25 @@ StyledRect {
}
}
ClippingRectangle {
StyledClippingRect {
id: image
anchors.horizontalCenter: parent.horizontalCenter
y: Appearance.padding.large
color: "transparent"
color: Colours.tPalette.m3surfaceContainer
radius: Appearance.rounding.normal
implicitWidth: Config.launcher.sizes.wallpaperWidth
implicitHeight: implicitWidth / 16 * 9
MaterialIcon {
anchors.centerIn: parent
text: "image"
color: Colours.tPalette.m3outline
font.pointSize: Appearance.font.size.extraLarge * 2
font.weight: 600
}
CachingImage {
path: root.modelData.path
smooth: !root.PathView.view.moving