From f99eab08b8e451816bb73b8696a4725ed4a145e1 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 3 Oct 2015 17:57:06 +0200 Subject: [PATCH] Revert "Make SETI a new default theme" This reverts commit 531a4f1b446e9cf92f7736543c13354d1a0a84ec. --- app/models/theme.rb | 3 +-- app/views/docs/embedding.html.md | 5 ++--- spec/services/asciicast_image_generator_spec.rb | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/models/theme.rb b/app/models/theme.rb index 8ae67e2..766c4bf 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -1,13 +1,12 @@ class Theme < Struct.new(:name, :label) AVAILABLE = { - 'seti' => 'Seti', 'tango' => 'Tango', 'solarized-dark' => 'Solarized Dark', 'solarized-light' => 'Solarized Light', } - DEFAULT = 'seti' + DEFAULT = 'tango' def self.default new(DEFAULT, AVAILABLE[DEFAULT]) diff --git a/app/views/docs/embedding.html.md b/app/views/docs/embedding.html.md index 5d7be87..d601273 100644 --- a/app/views/docs/embedding.html.md +++ b/app/views/docs/embedding.html.md @@ -84,10 +84,9 @@ For example, to make the font big use the following script: #### theme 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 -by the author). There are 4 themes available: +It defaults to a theme set by the asciicast author (or to "tango" if not set +by the author). There are 3 available themes: -* seti * tango * solarized-dark * solarized-light diff --git a/spec/services/asciicast_image_generator_spec.rb b/spec/services/asciicast_image_generator_spec.rb index c7f956b..e0cda84 100644 --- a/spec/services/asciicast_image_generator_spec.rb +++ b/spec/services/asciicast_image_generator_spec.rb @@ -6,7 +6,7 @@ describe AsciicastImageGenerator, needs_phantomjs_2_bin: true do let(:template_renderer) { ApplicationController.new } describe '#generate' do - let(:asciicast) { create(:asciicast, theme_name: 'tango') } + let(:asciicast) { create(:asciicast) } def rgb(color) [ChunkyPNG::Color.r(color), ChunkyPNG::Color.g(color), ChunkyPNG::Color.b(color)]