From 57f815bdc885960ba27c0028d044a0977afd3eba Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 17:15:10 +1000 Subject: wallpaper: limit source size Also animate launcher and osd background colours --- modules/background/Wallpaper.qml | 2 ++ modules/launcher/Background.qml | 8 ++++++++ modules/osd/Background.qml | 8 ++++++++ 3 files changed, 18 insertions(+) (limited to 'modules') 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 + } + } } } -- cgit v1.2.3-freya