Skip to content
Browse files

Forced normal for 'dark' colors.

  • Loading branch information...
1 parent ae151f6 commit daa45ec9f9f0df7cfca8bddae7d5e2d319d87d6e @jnovack jnovack committed Sep 29, 2012
Showing with 13 additions and 13 deletions.
  1. +13 −13 Console/Color2.php
View
26 Console/Color2.php
@@ -131,14 +131,14 @@ public function color($color = null, $style = null, $background = null) // {{{
}
$code = array();
- if (isset($color)) {
- $code[] = $colors['color'][$color];
- }
-
if (isset($style)) {
$code[] = $colors['style'][$style];
}
+ if (isset($color)) {
+ $code[] = $colors['color'][$color];
+ }
+
if (isset($background)) {
$code[] = $colors['background'][$background];
}
@@ -217,15 +217,15 @@ public function convert($string, $colored = true)
static $conversions = array ( // static so the array doesn't get built
// everytime
// %y - yellow, and so on... {{{
- '%y' => array('color' => 'yellow'),
- '%g' => array('color' => 'green' ),
- '%b' => array('color' => 'blue' ),
- '%r' => array('color' => 'red' ),
- '%p' => array('color' => 'purple'),
- '%m' => array('color' => 'purple'),
- '%c' => array('color' => 'cyan' ),
- '%w' => array('color' => 'grey' ),
- '%k' => array('color' => 'black' ),
+ '%y' => array('color' => 'yellow', 'style' => 'normal'),
+ '%g' => array('color' => 'green', 'style' => 'normal'),
+ '%b' => array('color' => 'blue', 'style' => 'normal'),
+ '%r' => array('color' => 'red', 'style' => 'normal'),
+ '%p' => array('color' => 'purple', 'style' => 'normal'),
+ '%m' => array('color' => 'purple', 'style' => 'normal'),
+ '%c' => array('color' => 'cyan', 'style' => 'normal'),
+ '%w' => array('color' => 'grey', 'style' => 'normal'),
+ '%k' => array('color' => 'black', 'style' => 'normal'),
'%n' => array('color' => 'reset' ),
'%Y' => array('color' => 'yellow', 'style' => 'light'),
'%G' => array('color' => 'green', 'style' => 'light'),

0 comments on commit daa45ec

Please sign in to comment.
Something went wrong with that request. Please try again.