From 1cc79c73ba046b8e26c5b6096d28d3ea9e5e61d2 Mon Sep 17 00:00:00 2001 From: Joe cooper Date: Thu, 13 Apr 2017 00:21:29 -0500 Subject: [PATCH] Get colors right --- lib/Term/Spinner/Color.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Term/Spinner/Color.pm b/lib/Term/Spinner/Color.pm index 6b3613a..5a715a8 100644 --- a/lib/Term/Spinner/Color.pm +++ b/lib/Term/Spinner/Color.pm @@ -229,11 +229,11 @@ sub nok { my $self = shift; my $nok; if ($self->{'last_size'} == 1) { - $nok = colored("✘", 'green'); + $nok = colored("✘", 'red'); } elsif ($self->{'last_size'} == 5) { - $nok = colored("[ ✘ ]", 'white on_green'); + $nok = colored("[ ✘ ]", 'white on_red'); } else { # Better be 7, or it'll look goofy, but still work - $nok = colored("[ ✘ ]", 'white on_green'); + $nok = colored("[ ✘ ]", 'white on_red'); } say $nok; } @@ -245,6 +245,7 @@ sub frame_length { my $self = shift; return length($self->{'seq'}[0]); } + 1; __END__