Skip to content

Commit

Permalink
Get colors right
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Apr 13, 2017
1 parent 563b8cf commit 1cc79c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Term/Spinner/Color.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -245,6 +245,7 @@ sub frame_length {
my $self = shift;
return length($self->{'seq'}[0]);
}

1;

__END__
Expand Down

0 comments on commit 1cc79c7

Please sign in to comment.