Raxol.Terminal.Theme.Manager (Raxol v0.5.0)
View SourceManages terminal themes with advanced features:
- Theme loading from files and presets
- Theme customization and modification
- Dynamic theme switching
- Theme persistence and state management
Summary
Functions
Adds a custom style to the current theme.
Gets the current theme metrics.
Gets a style from the current theme or custom styles.
Loads a theme from a file or preset.
Creates a new theme manager with the given options.
Restores a theme state from saved data.
Saves the current theme state for persistence.
Types
@type theme() :: %{ name: String.t(), description: String.t(), author: String.t(), version: String.t(), colors: %{ background: color(), foreground: color(), cursor: color(), selection: color(), black: color(), red: color(), green: color(), yellow: color(), blue: color(), magenta: color(), cyan: color(), white: color(), bright_black: color(), bright_red: color(), bright_green: color(), bright_yellow: color(), bright_blue: color(), bright_magenta: color(), bright_cyan: color(), bright_white: color() }, styles: %{ normal: style(), bold: style(), italic: style(), underline: style(), cursor: style(), selection: style() } }
Functions
Adds a custom style to the current theme.
Gets the current theme metrics.
Gets a style from the current theme or custom styles.
Loads a theme from a file or preset.
Creates a new theme manager with the given options.
Restores a theme state from saved data.
Saves the current theme state for persistence.