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 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue