Browse Source

fix: Improve progress bar visual layer (#7708)

Filippo Tessarotto 1 year ago
parent
commit
4842c3ed92

+ 3 - 3
src/Console/Output/Progress/PercentageBarOutput.php

@@ -35,9 +35,9 @@ final class PercentageBarOutput implements ProgressOutputInterface
         $this->context = $context;
 
         $this->progressBar = new ProgressBar($context->getOutput(), $this->context->getFilesCount());
-        $this->progressBar->setBarCharacter('█');
-        $this->progressBar->setEmptyBarCharacter('░');
-        $this->progressBar->setProgressCharacter('');
+        $this->progressBar->setBarCharacter('▓'); // dark shade character \u2593
+        $this->progressBar->setEmptyBarCharacter('░'); // light shade character \u2591
+        $this->progressBar->setProgressCharacter('');
         $this->progressBar->setFormat('normal');
 
         $this->progressBar->start();

+ 1 - 1
tests/Console/Output/Progress/PercentageBarOutputTest.php

@@ -60,7 +60,7 @@ final class PercentageBarOutputTest extends TestCase
                 [FixerFileProcessedEvent::STATUS_NO_CHANGES, 100],
             ],
             '   0/100 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%'.PHP_EOL.
-            ' 100/100 [████████████████████████████] 100%',
+            ' 100/100 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%',
             80,
         ];
     }