Update theme system

This commit is contained in:
Henry Sipp
2025-07-28 09:21:43 -05:00
parent 701953ccdc
commit e3f8ea40cf
5 changed files with 42 additions and 27 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)
then toString cfg.theme_overrides.wallpaper_path
else let
selected_wallpaper = builtins.elemAt (wallpapers.${cfg.theme}) 0;
in "~/Pictures/Wallpapers/${selected_wallpaper}";