summaryrefslogtreecommitdiff
path: root/modules/background/Wallpaper.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-09 15:15:49 -0500
committerFreya Murphy <freya@freyacat.org>2026-03-16 09:24:54 -0400
commit50bbd6f464fd32d3ce345681c6448ef963fb6e81 (patch)
treed29ac42d5faaf2c4beb3b8ef3f138729a09de7bf /modules/background/Wallpaper.qml
parentonly show active workspaces, fix colors (diff)
downloadcaelestia-shell-50bbd6f464fd32d3ce345681c6448ef963fb6e81.tar.gz
caelestia-shell-50bbd6f464fd32d3ce345681c6448ef963fb6e81.tar.bz2
caelestia-shell-50bbd6f464fd32d3ce345681c6448ef963fb6e81.zip
remove more stuffff
Diffstat (limited to 'modules/background/Wallpaper.qml')
-rw-r--r--modules/background/Wallpaper.qml40
1 files changed, 2 insertions, 38 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml
index 39a48fc..0929895 100644
--- a/modules/background/Wallpaper.qml
+++ b/modules/background/Wallpaper.qml
@@ -11,7 +11,7 @@ import QtQuick
Item {
id: root
- property string source: Wallpapers.current
+ property string source: Paths.wallpaper
property Image current: one
onSourceChanged: {
@@ -56,42 +56,6 @@ Item {
font.pointSize: Appearance.font.size.extraLarge * 2
font.bold: true
}
-
- StyledRect {
- implicitWidth: selectWallText.implicitWidth + Appearance.padding.large * 2
- implicitHeight: selectWallText.implicitHeight + Appearance.padding.small * 2
-
- radius: Appearance.rounding.full
- color: Colours.palette.m3primary
-
- FileDialog {
- id: dialog
-
- title: qsTr("Select a wallpaper")
- filterLabel: qsTr("Image files")
- filters: Images.validImageExtensions
- onAccepted: path => Wallpapers.setWallpaper(path)
- }
-
- StateLayer {
- radius: parent.radius
- color: Colours.palette.m3onPrimary
-
- function onClicked(): void {
- dialog.open();
- }
- }
-
- StyledText {
- id: selectWallText
-
- anchors.centerIn: parent
-
- text: qsTr("Set it now!")
- color: Colours.palette.m3onPrimary
- font.pointSize: Appearance.font.size.large
- }
- }
}
}
}
@@ -118,7 +82,7 @@ Item {
anchors.fill: parent
opacity: 0
- scale: Wallpapers.showPreview ? 1 : 0.8
+ scale: 0.8
onStatusChanged: {
if (status === Image.Ready)