module Scriptster::ColourThemes
A collection of predefined colour settings.
It's basically a just configuring the tco library.
Public Class Methods
dark()
click to toggle source
The colour theme for dark terminals.
# File lib/scriptster/configuration.rb, line 71 def self.dark Tco::configure do |conf| conf.names["green"] = "#99ad6a" conf.names["yellow"] = "#d8ad4c" conf.names["red"] = "#cc333f" conf.names["light-grey"] = "#ababab" conf.names["medium-grey"] = "#444444" conf.names["dark-grey"] = "#2b2b2b" conf.names["purple"] = "#90559e" conf.names["blue"] = "#4d9eeb" conf.names["orange"] = "#ff842a" conf.styles["info"] = { :fg => "green", :bg => "dark-grey", :bright => false, :underline => false } conf.styles["info-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["warn"] = { :fg => "dark-grey", :bg => "yellow", :bright => false, :underline => false } conf.styles["warn-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["err"] = { :fg => "dark-grey", :bg => "red", :bright => false, :underline => false } conf.styles["err-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["debug"] = { :fg => "light-grey", :bg => "dark-grey", :bright => false, :underline => false } conf.styles["debug-message"] = { :fg => "medium-grey", :bg => "default", :bright => false, :underline => false } conf.styles["name"] = { :fg => "purple", :bg => "dark-grey", :bright => false, :underline => false } conf.styles["highlight"] = { :fg => "orange", :bg => "default", :bright => false, :underline => false } conf.styles["cmd"] = { :fg => "blue", :bg => "dark-grey", :bright => false, :underline => false } conf.styles["timestamp"] = { :fg => "medium-grey", :bg => "default", :bright => false, :underline => false } end end
light()
click to toggle source
The colour scheme for dark terminals.
# File lib/scriptster/configuration.rb, line 139 def self.light Tco::configure do |conf| conf.names["green"] = "#99ad6a" conf.names["yellow"] = "#d8ad4c" conf.names["red"] = "#cc333f" conf.names["light-grey"] = "#eeeeee" conf.names["medium-grey"] = "#cccccc" conf.names["dark-grey"] = "#2b2b2b" conf.names["purple"] = "#90559e" conf.names["blue"] = "#4d9eeb" conf.names["orange"] = "#ff842a" conf.styles["info"] = { :fg => "green", :bg => "default", :bright => false, :underline => false } conf.styles["info-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["warn"] = { :fg => "dark-grey", :bg => "yellow", :bright => false, :underline => false } conf.styles["warn-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["err"] = { :fg => "dark-grey", :bg => "red", :bright => false, :underline => false } conf.styles["err-message"] = { :fg => "default", :bg => "default", :bright => false, :underline => false } conf.styles["debug"] = { :fg => "dark-grey", :bg => "default", :bright => false, :underline => false } conf.styles["debug-message"] = { :fg => "medium-grey", :bg => "default", :bright => false, :underline => false } conf.styles["name"] = { :fg => "purple", :bg => "light-grey", :bright => false, :underline => false } conf.styles["highlight"] = { :fg => "orange", :bg => "default", :bright => false, :underline => false } conf.styles["cmd"] = { :fg => "blue", :bg => "light-grey", :bright => false, :underline => false } conf.styles["timestamp"] = { :fg => "medium-grey", :bg => "default", :bright => false, :underline => false } end end