Skip to content

Commit 1cc79c7

Browse files
committed
Get colors right
1 parent 563b8cf commit 1cc79c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Term/Spinner/Color.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ sub nok {
229229
my $self = shift;
230230
my $nok;
231231
if ($self->{'last_size'} == 1) {
232-
$nok = colored("", 'green');
232+
$nok = colored("", 'red');
233233
} elsif ($self->{'last_size'} == 5) {
234-
$nok = colored("[ ✘ ]", 'white on_green');
234+
$nok = colored("[ ✘ ]", 'white on_red');
235235
} else { # Better be 7, or it'll look goofy, but still work
236-
$nok = colored("[ ✘ ]", 'white on_green');
236+
$nok = colored("[ ✘ ]", 'white on_red');
237237
}
238238
say $nok;
239239
}
@@ -245,6 +245,7 @@ sub frame_length {
245245
my $self = shift;
246246
return length($self->{'seq'}[0]);
247247
}
248+
248249
1;
249250

250251
__END__

0 commit comments

Comments
 (0)