summaryrefslogtreecommitdiff
path: root/modules/background
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-01-09 15:15:49 -0500
committerFreya Murphy <freya@freyacat.org>2026-01-22 08:33:36 -0500
commit2c2805abc3dc41ecfb6c48d3707d23423568c5a2 (patch)
tree71dab16530ad4c0bc47b08d7dec1107093879f37 /modules/background
parentonly show active workspaces, fix colors (diff)
downloadcaelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.tar.gz
caelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.tar.bz2
caelestia-shell-2c2805abc3dc41ecfb6c48d3707d23423568c5a2.zip
remove more stuffff
Diffstat (limited to 'modules/background')
-rw-r--r--modules/background/Background.qml97
-rw-r--r--modules/background/Wallpaper.qml40
2 files changed, 2 insertions, 135 deletions
diff --git a/modules/background/Background.qml b/modules/background/Background.qml
index 69e070b..e7b73ab 100644
--- a/modules/background/Background.qml
+++ b/modules/background/Background.qml
@@ -45,103 +45,6 @@ Loader {
wallpaper: wallpaper
}
}
-
-
- Loader {
- id: clockLoader
- active: Config.background.desktopClock.enabled
-
- anchors.margins: Appearance.padding.large * 2
- anchors.leftMargin: Appearance.padding.large * 2 + Config.bar.sizes.innerWidth + Math.max(Appearance.padding.smaller, Config.border.thickness)
-
- state: Config.background.desktopClock.position
- states: [
- State {
- name: "top-left"
- AnchorChanges {
- target: clockLoader
- anchors.top: parent.top
- anchors.left: parent.left
- }
- },
- State {
- name: "top-center"
- AnchorChanges {
- target: clockLoader
- anchors.top: parent.top
- anchors.horizontalCenter: parent.horizontalCenter
- }
- },
- State {
- name: "top-right"
- AnchorChanges {
- target: clockLoader
- anchors.top: parent.top
- anchors.right: parent.right }
- },
- State {
- name: "middle-left"
- AnchorChanges {
- target: clockLoader
- anchors.verticalCenter: parent.verticalCenter
- anchors.left: parent.left
- }
- },
- State {
- name: "middle-center"
- AnchorChanges {
- target: clockLoader
- anchors.verticalCenter: parent.verticalCenter
- anchors.horizontalCenter: parent.horizontalCenter
- }
- },
- State {
- name: "middle-right"
- AnchorChanges {
- target: clockLoader
- anchors.verticalCenter: parent.verticalCenter
- anchors.right: parent.right
- }
- },
- State {
- name: "bottom-left"
- AnchorChanges {
- target: clockLoader
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- }
- },
- State {
- name: "bottom-center"
- AnchorChanges {
- target: clockLoader
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- },
- State {
- name: "bottom-right"
- AnchorChanges {
- target: clockLoader
- anchors.bottom: parent.bottom
- anchors.right: parent.right
- }
- }
- ]
-
- transitions: Transition {
- AnchorAnimation {
- duration: Appearance.anim.durations.expressiveDefaultSpatial
- easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
- }
- }
-
- sourceComponent: DesktopClock {
- wallpaper: behindClock
- absX: clockLoader.x
- absY: clockLoader.y
- }
- }
}
}
}
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml
index b5d7d4a..9b91530 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
anchors.fill: parent
@@ -58,42 +58,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
- }
- }
}
}
}
@@ -120,7 +84,7 @@ Item {
anchors.fill: parent
opacity: 0
- scale: Wallpapers.showPreview ? 1 : 0.8
+ scale: 0.8
onStatusChanged: {
if (status === Image.Ready)