diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-01-09 19:53:59 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-01-09 19:53:59 -0500 |
| commit | 9c6aea03b58ead9044184724613ea1baa2a3cd35 (patch) | |
| tree | 982e19a91803cc2842a11fecd272800af373fa43 /modules/background/Wallpaper.qml | |
| parent | len :3 (diff) | |
| download | caelestia-shell-9c6aea03b58ead9044184724613ea1baa2a3cd35.tar.gz caelestia-shell-9c6aea03b58ead9044184724613ea1baa2a3cd35.tar.bz2 caelestia-shell-9c6aea03b58ead9044184724613ea1baa2a3cd35.zip | |
remove more things, make lock screen use wallpaper not screenshot
Diffstat (limited to 'modules/background/Wallpaper.qml')
| -rw-r--r-- | modules/background/Wallpaper.qml | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml deleted file mode 100644 index 46f7a52..0000000 --- a/modules/background/Wallpaper.qml +++ /dev/null @@ -1,112 +0,0 @@ -pragma ComponentBehavior: Bound - -import qs.components -import qs.components.images -import qs.components.filedialog -import qs.services -import qs.config -import qs.utils -import QtQuick - -Item { - id: root - - property string source: Paths.wallpaper - property Image current: one - - anchors.fill: parent - - onSourceChanged: { - if (!source) - current = null; - else if (current === one) - two.update(); - else - one.update(); - } - - Component.onCompleted: { - if (source) - Qt.callLater(() => one.update()); - } - - Loader { - anchors.fill: parent - - active: !root.source - asynchronous: true - - sourceComponent: StyledRect { - color: Colours.palette.m3surfaceContainer - - Row { - anchors.centerIn: parent - spacing: Appearance.spacing.large - - MaterialIcon { - text: "sentiment_stressed" - color: Colours.palette.m3onSurfaceVariant - font.pointSize: Appearance.font.size.extraLarge * 5 - } - - Column { - anchors.verticalCenter: parent.verticalCenter - spacing: Appearance.spacing.small - - StyledText { - text: qsTr("Wallpaper missing?") - color: Colours.palette.m3onSurfaceVariant - font.pointSize: Appearance.font.size.extraLarge * 2 - font.bold: true - } - } - } - } - } - - Img { - id: one - } - - Img { - id: two - } - - component Img: CachingImage { - id: img - - function update(): void { - if (path === root.source) - root.current = this; - else - path = root.source; - } - - anchors.fill: parent - - opacity: 0 - scale: 0.8 - - onStatusChanged: { - if (status === Image.Ready) - root.current = this; - } - - states: State { - name: "visible" - when: root.current === img - - PropertyChanges { - img.opacity: 1 - img.scale: 1 - } - } - - transitions: Transition { - Anim { - target: img - properties: "opacity,scale" - } - } - } -} |