From ff165834a50d0b64124e5912b2787e01d13620be Mon Sep 17 00:00:00 2001 From: hannah-radish Date: Tue, 22 Nov 2016 15:55:02 -0800 Subject: [PATCH] Updated color palettes, label colors and icons Added color palettes for helper, input, command and automate text. --- lib/inspec/rspec_json_formatter.rb | 31 ++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/lib/inspec/rspec_json_formatter.rb b/lib/inspec/rspec_json_formatter.rb index 296d4eb82..331df6a27 100644 --- a/lib/inspec/rspec_json_formatter.rb +++ b/lib/inspec/rspec_json_formatter.rb @@ -254,23 +254,30 @@ class InspecRspecCli < InspecRspecJson # rubocop:disable Metrics/ClassLength }.freeze COLORS = { - 'critical' => "\033[31;1m", - 'major' => "\033[31m", - 'minor' => "\033[33m", - 'failed' => "\033[31m", - 'passed' => "\033[32m", - 'skipped' => "\033[37m", - 'reset' => "\033[0m", + 'critical' => "\033[0;48;5;9m", # Red label + 'major' => "\033[0;48;5;208m", # Orange label + 'minor' => "\033[0;48;5;33m", # Blue label + 'failed' => "\033[38;5;9m", # Red string + 'passed' => "\033[0;48;5;41m", # Green label + 'success' => "\033[38;5;113m", # Green string + 'skipped' => "\033[0;48;5;247m", # Gray label + 'skip' => "\033[38;5;247m", # Gray string + 'reset' => "\033[0m", # Reset back to white + 'cmnd' => "\033[0;36m", # Aqua string for commands + 'inpt' => "\033[38;5;214m", # Orange string for user input + 'atmate' => "\033[38;5;197m", # Pink string to launch Automate + 'helpr' => "\033[38;5;7m", # Lt Gray string for helper text }.freeze INDICATORS = { - 'critical' => ' ✖ ', - 'major' => ' ✖ ', - 'minor' => ' ✖ ', - 'failed' => ' ✖ ', - 'skipped' => ' ○ ', + 'critical' => ' × ', + 'major' => ' ∅ ', + 'minor' => ' ⊚ ', + 'failed' => ' × ', + 'skipped' => ' ↺ ', 'passed' => ' ✔ ', 'unknown' => ' ? ', + 'helpr' => ' ✣ ', 'empty' => ' ', 'small' => ' ', }.freeze