From 97ea9d49929b223036e96388c66d700ea731d6db Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 5 May 2025 17:06:12 +1000 Subject: feat: wallpaper and colour preview --- modules/launcher/WallpaperList.qml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/launcher') diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml index 9582957..430964e 100644 --- a/modules/launcher/WallpaperList.qml +++ b/modules/launcher/WallpaperList.qml @@ -24,6 +24,12 @@ PathView { } Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.current) + Component.onDestruction: Wallpapers.stopPreview() + + onCurrentItemChanged: { + if (currentItem) + Wallpapers.preview(currentItem.modelData.path); + } implicitWidth: Math.min(LauncherConfig.maxWallpapers, count) * (LauncherConfig.sizes.wallpaperWidth * 0.8 + Appearance.padding.larger * 2) pathItemCount: LauncherConfig.maxWallpapers -- cgit v1.2.3-freya