summaryrefslogtreecommitdiff
path: root/modules/launcher/WallpaperList.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
commit96429160c30ba5f6dcd25c8e6a181221195c41d8 (patch)
tree6f95bac8f3056abae67c04ae612b574ce1c37286 /modules/launcher/WallpaperList.qml
parentinternal: properly fix beat detector (diff)
downloadcaelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.gz
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.bz2
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.zip
feat: user config file
Config file at `~/.config/caelestia/shell.json`
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