Revert "Make SETI a new default theme"

This reverts commit 531a4f1b44.
element
Marcin Kulik 9 years ago
parent 531a4f1b44
commit f99eab08b8

@ -1,13 +1,12 @@
class Theme < Struct.new(:name, :label) class Theme < Struct.new(:name, :label)
AVAILABLE = { AVAILABLE = {
'seti' => 'Seti',
'tango' => 'Tango', 'tango' => 'Tango',
'solarized-dark' => 'Solarized Dark', 'solarized-dark' => 'Solarized Dark',
'solarized-light' => 'Solarized Light', 'solarized-light' => 'Solarized Light',
} }
DEFAULT = 'seti' DEFAULT = 'tango'
def self.default def self.default
new(DEFAULT, AVAILABLE[DEFAULT]) new(DEFAULT, AVAILABLE[DEFAULT])

@ -84,10 +84,9 @@ For example, to make the font big use the following script:
#### theme #### theme
The `theme` option allows overriding a theme used for the terminal. The `theme` option allows overriding a theme used for the terminal.
It defaults to a theme set by the asciicast author (or to "seti" if not set It defaults to a theme set by the asciicast author (or to "tango" if not set
by the author). There are 4 themes available: by the author). There are 3 available themes:
* seti
* tango * tango
* solarized-dark * solarized-dark
* solarized-light * solarized-light

@ -6,7 +6,7 @@ describe AsciicastImageGenerator, needs_phantomjs_2_bin: true do
let(:template_renderer) { ApplicationController.new } let(:template_renderer) { ApplicationController.new }
describe '#generate' do describe '#generate' do
let(:asciicast) { create(:asciicast, theme_name: 'tango') } let(:asciicast) { create(:asciicast) }
def rgb(color) def rgb(color)
[ChunkyPNG::Color.r(color), ChunkyPNG::Color.g(color), ChunkyPNG::Color.b(color)] [ChunkyPNG::Color.r(color), ChunkyPNG::Color.g(color), ChunkyPNG::Color.b(color)]

Loading…
Cancel
Save