Skip to content

Commit

Permalink
chore(color): add dark and light gray colors
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Dec 26, 2019
1 parent 6358778 commit 2d4051d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Output/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
*/
class Color
{
const BLACK = 30;
const RED = 31;
const GREEN = 32;
const YELLOW = 33;
const BLUE = 34;
const PURPLE = 35;
const CYAN = 36;
const WHITE = 37;
const BLACK = 30;
const RED = 31;
const GREEN = 32;
const YELLOW = 33;
const BLUE = 34;
const PURPLE = 35;
const CYAN = 36;
const WHITE = 37;
const GRAY = 47;
const DARKGRAY = 100;

/** @var string Cli format */
protected $format = "\033[:bold:;:fg:;:bg:m:text:\033[0m";
Expand All @@ -48,7 +50,7 @@ class Color
*/
public function comment(string $text, array $style = []): string
{
return $this->line($text, ['fg' => static::BLACK, 'bold' => 1] + $style);
return $this->line($text, ['fg' => static::DARKGRAY, 'bold' => 0] + $style);
}

/**
Expand Down

0 comments on commit 2d4051d

Please sign in to comment.