Raxol.Style.Colors.System.ColorSystemServer (Raxol v2.0.1)
View SourceGenServer implementation for the color system in Raxol.
This server manages color themes, high contrast settings, and provides color resolution services while eliminating Process dictionary usage.
Features
- Theme management and switching
- High contrast mode support
- Automatic accessibility adjustments
- Color caching and resolution
- Event-driven theme changes
Summary
Functions
Apply a theme to the color system.
Returns a child specification for this server.
Get accessibility options from the server.
Get all UI colors for the current theme.
Get a color from the current theme.
Get the current theme.
Get the current theme name.
Check if high contrast mode is enabled.
Get a UI color by role.
Handle accessibility preference changes.
Handle high contrast mode changes.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Initialize the color system with a theme and settings.
Register a custom theme.
Set accessibility options.
Set the current theme.
Functions
Apply a theme to the color system.
Returns a child specification for this server.
Get accessibility options from the server.
Get all UI colors for the current theme.
Get a color from the current theme.
Get the current theme.
Get the current theme name.
Check if high contrast mode is enabled.
Get a UI color by role.
Handle accessibility preference changes.
Handle high contrast mode changes.
Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.
Initialize the color system with a theme and settings.
Register a custom theme.
Set accessibility options.
Set the current theme.