From 373c160d414a05c3dc2f8c7db38bc87a36df7e9b Mon Sep 17 00:00:00 2001 From: Stormwind Date: Tue, 8 Dec 2015 12:39:26 +0100 Subject: [PATCH] Add a greyscale color theme to ColoredConsole --- lib/rubella/output/colored_console.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/rubella/output/colored_console.rb b/lib/rubella/output/colored_console.rb index a460b2d..b6f3aa5 100644 --- a/lib/rubella/output/colored_console.rb +++ b/lib/rubella/output/colored_console.rb @@ -29,6 +29,11 @@ module Rubella super data, field_size @symbols = Hash.new + @symbols["greyscale"] = self.create_colors [ + 232, 233, 234, 235, 236, 237, 238, 239, + 240, 241, 242, 243, 244, 245, 246, 247, + 248, 249, 250, 251, 252, 253, 254, 255 + ] @symbols["colored_fields"] = self.create_colors [ 35+196, 24+196,