2014-06-30 21:26:25 +00:00
|
|
|
class Theme < Struct.new(:name, :label)
|
|
|
|
|
|
|
|
AVAILABLE = {
|
2015-10-18 15:52:11 +00:00
|
|
|
'asciinema' => 'asciinema',
|
2014-06-30 21:26:25 +00:00
|
|
|
'tango' => 'Tango',
|
|
|
|
'solarized-dark' => 'Solarized Dark',
|
|
|
|
'solarized-light' => 'Solarized Light',
|
2015-10-18 15:52:11 +00:00
|
|
|
'monokai' => 'Monokai',
|
2014-06-30 21:26:25 +00:00
|
|
|
}
|
|
|
|
|
2015-10-18 15:52:11 +00:00
|
|
|
DEFAULT = 'asciinema'
|
2014-06-30 21:26:25 +00:00
|
|
|
|
|
|
|
def self.default
|
|
|
|
new(DEFAULT, AVAILABLE[DEFAULT])
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.for_name(name)
|
|
|
|
new(name, AVAILABLE[name])
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|