summaryrefslogtreecommitdiff
path: root/modules/launcher/WallpaperList.qml
diff options
context:
space:
mode:
authorTim Hämisch <tim@thaemisch.net>2025-06-15 13:40:47 +0200
committerGitHub <noreply@github.com>2025-06-15 13:40:47 +0200
commit68874082b4cfee63feaecc0640646ad0ba753da7 (patch)
tree815a1113a4bd83373283253a35f0220a08a8cfe6 /modules/launcher/WallpaperList.qml
parentlauncher: use standard logout command (diff)
parentdashboard: fix uptime (diff)
downloadcaelestia-shell-68874082b4cfee63feaecc0640646ad0ba753da7.tar.gz
caelestia-shell-68874082b4cfee63feaecc0640646ad0ba753da7.tar.bz2
caelestia-shell-68874082b4cfee63feaecc0640646ad0ba753da7.zip
Merge branch 'main' into betteractions
Diffstat (limited to 'modules/launcher/WallpaperList.qml')
-rw-r--r--modules/launcher/WallpaperList.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml
index fef1726..fd82a2b 100644
--- a/modules/launcher/WallpaperList.qml
+++ b/modules/launcher/WallpaperList.qml
@@ -14,8 +14,8 @@ PathView {
const screenWidth = QsWindow.window?.screen.width * 0.8;
if (!screenWidth)
return 0;
- const itemWidth = LauncherConfig.sizes.wallpaperWidth * 0.8;
- const max = LauncherConfig.maxWallpapers;
+ const itemWidth = Config.launcher.sizes.wallpaperWidth * 0.8;
+ const max = Config.launcher.maxWallpapers;
if (max * itemWidth > screenWidth) {
const items = Math.floor(screenWidth / itemWidth);
return items > 1 && items % 2 === 0 ? items - 1 : items;
@@ -43,7 +43,7 @@ PathView {
Wallpapers.preview(currentItem.modelData.path);
}
- implicitWidth: Math.min(numItems, count) * (LauncherConfig.sizes.wallpaperWidth * 0.8 + Appearance.padding.larger * 2)
+ implicitWidth: Math.min(numItems, count) * (Config.launcher.sizes.wallpaperWidth * 0.8 + Appearance.padding.larger * 2)
pathItemCount: numItems
cacheItemCount: 4