struct Tartrazine::Theme

Defined in:

styles.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_base16(name : String) : Theme #

Load from a base16 theme name using Sixteen


[View source]
def self.from_xml(xml : String) : Theme #

Load from a Chroma XML file


[View source]
def self.new #

[View source]

Class Method Detail

def self.make_highlight_color(base_color) #

If the color is dark, make it brighter and viceversa


[View source]

Instance Method Detail

def initialize #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def style(token) #

Get the style for a token.


[View source]
def style_parents(token) #

[View source]
def styles : Hash(String, Tartrazine::Style) #

[View source]
def styles=(styles : Hash(String, Tartrazine::Style)) #

[View source]