Skip to main content

import_theme

Function import_theme 

Source
pub fn import_theme(
    source_path: &Path,
    custom_dir: &Path,
) -> Result<ThemeMeta, String>
Expand description

Import a theme TOML file into the custom themes directory.

Validates that the file is parseable TOML with at least one intent color section, then copies it to custom_dir/{id}.toml. Returns the theme metadata.