Skip to main content

Crate tca_loader

Crate tca_loader 

Source
Expand description

XDG-compliant theme loader for Terminal Colors Architecture.

Provides filesystem operations for discovering and loading TCA themes from XDG data directories.

Functionsยง

find_theme
Find a theme by name (with or without .toml extension).
get_data_dir
Get the TCA data directory path, creating it if it does not exist.
get_themes_dir
Get the themes directory path, creating it if it does not exist.
list_theme_names
List all theme names (without paths or extensions).
list_themes
List all available theme files in the shared themes directory.
load_all_from_dir
Load all themes from a given directory as raw tca_types::Theme values.
load_all_from_theme_dir
Load all locally installed themes from the shared theme directory.
load_theme_file
Load a theme file from one of these locations (searched in order):