diff options
Diffstat (limited to 'lib/Reply/Plugin/Colors.pm')
-rw-r--r-- | lib/Reply/Plugin/Colors.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Reply/Plugin/Colors.pm b/lib/Reply/Plugin/Colors.pm index 199d41e..8b68119 100644 --- a/lib/Reply/Plugin/Colors.pm +++ b/lib/Reply/Plugin/Colors.pm @@ -8,11 +8,12 @@ use Term::ANSIColor; sub new { my $class = shift; + my %opts = @_; my $self = $class->SUPER::new(@_); - $self->{error} = 'red'; - $self->{warning} = 'yellow'; - $self->{result} = 'green'; + $self->{error} = $opts{error} || 'red'; + $self->{warning} = $opts{warning} || 'yellow'; + $self->{result} = $opts{result} || 'green'; return $self; } |