def default_for_256_colors
def default_for_256_colors
@@default_for_256_colors ||=
new("pass" => Color.new("030", :background => true) +
Color.new("555", :bold => true),
"pass-marker" => Color.new("050", :bold => true),
"failure" => Color.new("300", :background => true) +
Color.new("555", :bold => true),
"failure-marker" => Color.new("500"),
"pending" => Color.new("303", :background => true) +
Color.new("555", :bold => true),
"pending-marker" => Color.new("303"),
"omission" => Color.new("001", :background => true) +
Color.new("555", :bold => true),
"omission-marker" => Color.new("001"),
"notification" => Color.new("011", :background => true) +
Color.new("555", :bold => true),
"notification-marker" => Color.new("011"),
"error" => Color.new("000", :background => true) +
Color.new("550", :bold => true),
"error-marker" => Color.new("550"),
"case" => Color.new("220", :background => true) +
Color.new("555", :bold => true),
"suite" => Color.new("110", :background => true) +
Color.new("555", :bold => true),
"diff-inserted-tag" => Color.new("500", :background => true) +
Color.new("000", :bold => true),
"diff-deleted-tag" => Color.new("050", :background => true) +
Color.new("000", :bold => true),
"diff-difference-tag" => Color.new("005", :background => true) +
Color.new("555", :bold => true),
"diff-inserted" => Color.new("300", :background => true) +
Color.new("555", :bold => true),
"diff-deleted" => Color.new("030", :background => true) +
Color.new("555", :bold => true))
end
def default_for_8_colors
@@default_for_8_colors ||=
new("pass" => Color.new("green", :background => true) +
Color.new("white", :bold => true),
"pass-marker" => Color.new("green", :bold => true),
"failure" => Color.new("red", :background => true) +
Color.new("white", :bold => true),
"failure-marker" => Color.new("red"),
"pending" => Color.new("magenta", :background => true) +
Color.new("white", :bold => true),
"pending-marker" => Color.new("magenta"),
"omission" => Color.new("blue", :background => true) +
Color.new("white", :bold => true),
"omission-marker" => Color.new("blue"),
"notification" => Color.new("cyan", :background => true) +
Color.new("white", :bold => true),
"notification-marker" => Color.new("cyan"),
"error" => Color.new("black", :background => true) +
Color.new("yellow", :bold => true),
"error-marker" => Color.new("yellow"),
"case" => Color.new("blue", :background => true) +
Color.new("white", :bold => true),
"suite" => Color.new("green", :background => true) +
Color.new("white", :bold => true),
"diff-inserted-tag" => Color.new("red", :background => true) +
Color.new("black", :bold => true),
"diff-deleted-tag" => Color.new("green", :background => true) +
Color.new("black", :bold => true),
"diff-difference-tag" => Color.new("cyan", :background => true) +
Color.new("white", :bold => true),
"diff-inserted" => Color.new("red", :background => true) +
Color.new("white", :bold => true),
"diff-deleted" => Color.new("green", :background => true) +
Color.new("white", :bold => true))
end