summaryrefslogtreecommitdiff
path: root/modules/launcher
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 16:17:10 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-04 16:17:10 +1000
commit0505ba8f92545107ecd45d6f3cd8d5cea5d3fd2b (patch)
tree1abebc7ccc3302969a609caaab6171fdc126a2b3 /modules/launcher
parentgeneral: better multieffect mask settings (diff)
downloadcaelestia-shell-0505ba8f92545107ecd45d6f3cd8d5cea5d3fd2b.tar.gz
caelestia-shell-0505ba8f92545107ecd45d6f3cd8d5cea5d3fd2b.tar.bz2
caelestia-shell-0505ba8f92545107ecd45d6f3cd8d5cea5d3fd2b.zip
launcher: anim wallpaperitem creation
Also fix cachingimage
Diffstat (limited to 'modules/launcher')
-rw-r--r--modules/launcher/WallpaperItem.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/launcher/WallpaperItem.qml b/modules/launcher/WallpaperItem.qml
index c037440..e21743c 100644
--- a/modules/launcher/WallpaperItem.qml
+++ b/modules/launcher/WallpaperItem.qml
@@ -10,10 +10,15 @@ StyledRect {
required property Wallpapers.Wallpaper modelData
- scale: PathView.isCurrentItem ? 1 : PathView.onPath ? 0.8 : 0
- opacity: PathView.onPath ? 1 : 0
+ scale: 0.5
+ opacity: 0
z: PathView.z
+ Component.onCompleted: {
+ scale = Qt.binding(() => PathView.isCurrentItem ? 1 : PathView.onPath ? 0.8 : 0);
+ opacity = Qt.binding(() => PathView.onPath ? 1 : 0);
+ }
+
implicitWidth: image.width + Appearance.padding.larger * 2
implicitHeight: image.height + label.height + Appearance.spacing.small / 2 + Appearance.padding.large + Appearance.padding.normal