class
Opal::Theme
- Opal::Theme
- Reference
- Object
Overview
Represents a semantic color theme for consistent, accessible TUI styling.
Defined in:
opal/style/theme.crConstructors
- .current : Theme
- .current=(theme : Theme | Symbol | String) : Theme
- .get(name : Symbol | String) : Theme
- .new(name : String, primary : Color, secondary : Color, accent : Color, background : Color, surface : Color, text : Color, text_muted : Color, border : Color, success : Color, warning : Color, danger : Color, info : Color)
- .register(theme : Theme) : Theme
Class Method Summary
Instance Method Summary
- #accent : Color
- #background : Color
- #border : Color
- #danger : Color
- #info : Color
- #name : String
- #primary : Color
- #secondary : Color
- #success : Color
- #surface : Color
- #text : Color
- #text_muted : Color
- #warning : Color
Constructor Detail
def self.new(name : String, primary : Color, secondary : Color, accent : Color, background : Color, surface : Color, text : Color, text_muted : Color, border : Color, success : Color, warning : Color, danger : Color, info : Color)
#