feat(home): enhance user environment and dynamic theming
- Implement dynamic palette generation from colors.toml themes - Update script wrapper to handle non-executable source files - Integrate Stylix for unified application theming - Add state-based logic for persistent dynamic configurations
This commit is contained in:
@@ -2,9 +2,10 @@ let
|
||||
themesDir = ./.;
|
||||
|
||||
# Get all directories in the themes folder that have a colors.toml file
|
||||
directories = builtins.attrNames (
|
||||
builtins.filterAttrs (name: type: type == "directory" && builtins.pathExists (themesDir + "/${name}/colors.toml")) (builtins.readDir themesDir)
|
||||
);
|
||||
allEntries = builtins.readDir themesDir;
|
||||
directories = builtins.filter (name:
|
||||
allEntries.${name} == "directory" && builtins.pathExists (themesDir + "/${name}/colors.toml")
|
||||
) (builtins.attrNames allEntries);
|
||||
|
||||
readTheme = name:
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user