2014-06-30 21:26:25 +00:00
|
|
|
class Theme < Struct.new(:name, :label)
|
|
|
|
|
|
|
|
AVAILABLE = {
|
2015-10-05 16:52:56 +00:00
|
|
|
'seti' => 'Seti',
|
2014-06-30 21:26:25 +00:00
|
|
|
'tango' => 'Tango',
|
|
|
|
'solarized-dark' => 'Solarized Dark',
|
|
|
|
'solarized-light' => 'Solarized Light',
|
|
|
|
}
|
|
|
|
|
2015-10-03 15:57:06 +00:00
|
|
|
DEFAULT = 'tango'
|
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
|