asciinema.org/app/models/theme.rb

21 lines
346 B
Ruby
Raw Normal View History

class Theme < Struct.new(:name, :label)
AVAILABLE = {
2015-10-05 16:52:56 +00:00
'seti' => 'Seti',
'tango' => 'Tango',
'solarized-dark' => 'Solarized Dark',
'solarized-light' => 'Solarized Light',
}
DEFAULT = 'tango'
def self.default
new(DEFAULT, AVAILABLE[DEFAULT])
end
def self.for_name(name)
new(name, AVAILABLE[name])
end
end