Made the progress bar more visible.

- The underline was too subtle sometimes, depending on the terminal type.
This commit is contained in:
Andrew Hamilton 2018-05-17 14:37:37 +10:00
parent e34e896800
commit 10fbc33759
2 changed files with 3 additions and 2 deletions

View file

@ -57,4 +57,4 @@
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
(B (Bh(Belp (Bq(Buit (Btab(B:focus (Bt(Burn (Bl(Bog (Be(Bdit (Bn(Bext (Bp(Bause (Bo(Brder (Br(Befresh (Bf(Bullscreen (Brunning(B order:directory (B
(B (Bh(Belp (Bq(Buit (Btab(B:focus (Bt(Burn (Bl(Bog (Be(Bdit (Bn(Bext (Bp(Bause (Bo(Brder (Br(Befresh (Bf(Bullscreen (Brunning(B order:directory (B

View file

@ -885,7 +885,8 @@ class Screen:
spacing = " " * (width - len(self._STATUS_BAR) - len(indicators))
bar = (self._STATUS_BAR[:width - len(indicators)] + spacing +
indicators)[:width]
return [bar[:progress_bar_size].underline() + bar[progress_bar_size:]]
return [bar[:progress_bar_size].bg_color(termstr.Color.grey_100) +
bar[progress_bar_size:]]
def _get_status_bar(self, width):
incomplete = self._summary.result_total - self._summary.completed_total