diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 17:15:10 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 17:15:10 +1000 |
| commit | 57f815bdc885960ba27c0028d044a0977afd3eba (patch) | |
| tree | 62827b6a865b67b5767a0427b7ea82b2195d854e /modules | |
| parent | feat: wallpaper and colour preview (diff) | |
| download | caelestia-shell-57f815bdc885960ba27c0028d044a0977afd3eba.tar.gz caelestia-shell-57f815bdc885960ba27c0028d044a0977afd3eba.tar.bz2 caelestia-shell-57f815bdc885960ba27c0028d044a0977afd3eba.zip | |
wallpaper: limit source size
Also animate launcher and osd background colours
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/background/Wallpaper.qml | 2 | ||||
| -rw-r--r-- | modules/launcher/Background.qml | 8 | ||||
| -rw-r--r-- | modules/osd/Background.qml | 8 |
3 files changed, 18 insertions, 0 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml index b126617..2ffc922 100644 --- a/modules/background/Wallpaper.qml +++ b/modules/background/Wallpaper.qml @@ -43,6 +43,8 @@ Item { fillMode: Image.PreserveAspectCrop opacity: 0 scale: Wallpapers.showPreview ? 1 : 0.8 + sourceSize.width: width + sourceSize.height: height onStatusChanged: { if (status === Image.Ready) diff --git a/modules/launcher/Background.qml b/modules/launcher/Background.qml index 7dce14a..e7104ba 100644 --- a/modules/launcher/Background.qml +++ b/modules/launcher/Background.qml @@ -58,5 +58,13 @@ Shape { radiusY: root.roundingY direction: PathArc.Counterclockwise } + + Behavior on fillColor { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } } } diff --git a/modules/osd/Background.qml b/modules/osd/Background.qml index a24e3fb..1c5c957 100644 --- a/modules/osd/Background.qml +++ b/modules/osd/Background.qml @@ -58,5 +58,13 @@ Shape { radiusX: root.roundingX radiusY: root.rounding } + + Behavior on fillColor { + ColorAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } } } |