Progress bar uses darker red and green.
This brings it in line with the red and green used in other testing suites. It has the additional advantage of being more useful to people with at least my particular brand of color deficiency, which made it difficult to distinguish the lighter red and green previously used.
This commit is contained in:
parent
2b387cabb2
commit
33ed55b432
|
@ -34,7 +34,7 @@ module Hydra #:nodoc:
|
||||||
complete = ((@files_completed.to_f / @total_files.to_f) * width).to_i
|
complete = ((@files_completed.to_f / @total_files.to_f) * width).to_i
|
||||||
@output.write "\r" # move to beginning
|
@output.write "\r" # move to beginning
|
||||||
@output.write 'Hydra Testing ['
|
@output.write 'Hydra Testing ['
|
||||||
@output.write @errors ? "\033[1;31m" : "\033[1;32m"
|
@output.write @errors ? "\033[0;31m" : "\033[0;32m"
|
||||||
complete.times{@output.write '#'}
|
complete.times{@output.write '#'}
|
||||||
@output.write '>'
|
@output.write '>'
|
||||||
(width-complete).times{@output.write ' '}
|
(width-complete).times{@output.write ' '}
|
||||||
|
|
Loading…
Reference in New Issue