Highlight the progress bar differently.

This commit is contained in:
Andrew Hamilton 2018-06-16 18:37:04 +10:00
parent 6a0bacc805
commit fedc10692f
2 changed files with 2 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

@ -898,7 +898,7 @@ 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].bg_color(termstr.Color.grey_100) +
return [highlight_str(bar[:progress_bar_size], termstr.Color.white, 0.7) +
bar[progress_bar_size:]]
def _get_status_bar(self, width):