Obelisk::Style
Complete style/theme definition
Constructors
Builder method for creating styles
new(name : String, background : Color = Color::WHITE, entries : Hash(Obelisk::TokenType, Obelisk::StyleEntry) = {} of TokenType => StyleEntry)
SourceInstance methods
background
Sourceentries
Sourceget_direct(token_type : TokenType) : StyleEntry | Nil
Get direct style entry for a token type (without inheritance)
name
Sourcewith(token_type : TokenType, entry : StyleEntry) : Style
Create a new style with the given entry added