Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated color palettes, label colors and icons #1313

Merged
merged 1 commit into from
Nov 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions lib/inspec/rspec_json_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down