Update generated theme config (#7)

* Update theme system

* Fixes
This commit is contained in:
Henry Sipp
2025-07-28 10:18:22 -05:00
committed by GitHub
parent 701953ccdc
commit 7d7a7a9f11
5 changed files with 44 additions and 28 deletions
+3 -3
View File
@@ -21,9 +21,9 @@ config: let
];
};
# Handle custom wallpaper path
wallpaper_path = if cfg.theme == "custom"
then toString cfg.customTheme.wallpaperPath
# Handle wallpaper path for generated themes and overrides
wallpaper_path = if (cfg.theme == "generated_light" || cfg.theme == "generated_dark") || (cfg.theme_overrides.wallpaper_path != null)
then toString cfg.theme_overrides.wallpaper_path
else let
selected_wallpaper = builtins.elemAt (wallpapers.${cfg.theme}) 0;
in "~/Pictures/Wallpapers/${selected_wallpaper}";