launcher/wallpaper: add placeholder
This commit is contained in:
parent
e405bf8d5a
commit
0dc75259fe
1 changed files with 11 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ import Quickshell
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
||||||
StyledRect {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property FileSystemEntry modelData
|
required property FileSystemEntry modelData
|
||||||
|
|
@ -46,17 +46,25 @@ StyledRect {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ClippingRectangle {
|
StyledClippingRect {
|
||||||
id: image
|
id: image
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
y: Appearance.padding.large
|
y: Appearance.padding.large
|
||||||
color: "transparent"
|
color: Colours.tPalette.m3surfaceContainer
|
||||||
radius: Appearance.rounding.normal
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
implicitWidth: Config.launcher.sizes.wallpaperWidth
|
implicitWidth: Config.launcher.sizes.wallpaperWidth
|
||||||
implicitHeight: implicitWidth / 16 * 9
|
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 {
|
CachingImage {
|
||||||
path: root.modelData.path
|
path: root.modelData.path
|
||||||
smooth: !root.PathView.view.moving
|
smooth: !root.PathView.view.moving
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue