Module: Scriptster::ColourThemes
- Defined in:
- lib/scriptster/configuration.rb
Overview
A collection of predefined colour settings.
It’s basically a just configuring the tco library.
Class Method Summary collapse
-
.dark ⇒ Object
The colour theme for dark terminals.
-
.light ⇒ Object
The colour scheme for dark terminals.
Class Method Details
.dark ⇒ Object
The colour theme for dark terminals.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# 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 ⇒ Object
The colour scheme for dark terminals.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# 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 |