Raxol.UI.ThemeResolverCached (Raxol v2.0.1)

View Source

Cached theme resolution module providing backward compatibility.

This module delegates to Raxol.UI.ThemeResolver with caching enabled by default. All functions in this module use caching to provide optimal performance.

Summary

Functions

Clears all cached theme and style data.

Gets component styles with caching.

Gets the default theme with caching enabled.

Resolves background color with caching.

Resolves element theme with caching enabled.

Resolves foreground color with caching.

Resolves styles with caching enabled. Returns {fg_color, bg_color, style_attrs}.

Resolves variant color with caching.

Functions

clear_cache()

Clears all cached theme and style data.

get_component_styles(component_type, theme)

Gets component styles with caching.

get_default_theme()

Gets the default theme with caching enabled.

merge_themes_for_inheritance(parent_theme, child_theme)

Merges themes for inheritance.

resolve_bg_color(attrs, component_styles, theme)

Resolves background color with caching.

resolve_element_theme(element_theme, default_theme)

Resolves element theme with caching enabled.

resolve_fg_color(attrs, component_styles, theme)

Resolves foreground color with caching.

resolve_styles(attrs, component_type, theme)

Resolves styles with caching enabled. Returns {fg_color, bg_color, style_attrs}.

resolve_variant_color(attrs, theme, color_type)

Resolves variant color with caching.