Dropped the ordering indicator.
- Couldn't justify it alone, without the pause indicator too. - Still get some feedback from the log message when changing order.
This commit is contained in:
parent
048413f09b
commit
4881baf6ef
2 changed files with 5 additions and 10 deletions
|
|
@ -961,14 +961,10 @@ class Screen:
|
||||||
for char in fill3.ScrollBar._PARTIAL_CHARS[1]]
|
for char in fill3.ScrollBar._PARTIAL_CHARS[1]]
|
||||||
|
|
||||||
@functools.lru_cache(maxsize=2)
|
@functools.lru_cache(maxsize=2)
|
||||||
def _get_status_bar_appearance(self, width, is_directory_sort,
|
def _get_status_bar_appearance(self, width, progress_bar_size):
|
||||||
progress_bar_size):
|
|
||||||
bar_transparency = 0.7
|
bar_transparency = 0.7
|
||||||
ordering_text = "directory" if is_directory_sort else "type "
|
spacing = " " * (width - len(self._STATUS_BAR))
|
||||||
indicator = f"{ordering_text} "
|
bar = (self._STATUS_BAR[:width] + spacing)[:width]
|
||||||
spacing = " " * (width - len(self._STATUS_BAR) - len(indicator))
|
|
||||||
bar = (self._STATUS_BAR[:width - len(indicator)] + spacing +
|
|
||||||
indicator)[:width]
|
|
||||||
fraction, whole = math.modf(progress_bar_size)
|
fraction, whole = math.modf(progress_bar_size)
|
||||||
whole = int(whole)
|
whole = int(whole)
|
||||||
if whole < len(bar) and bar[whole].data == " ":
|
if whole < len(bar) and bar[whole].data == " ":
|
||||||
|
|
@ -986,8 +982,7 @@ class Screen:
|
||||||
incomplete = self._summary.result_total - self._summary.completed_total
|
incomplete = self._summary.result_total - self._summary.completed_total
|
||||||
progress_bar_size = max(0, width * incomplete /
|
progress_bar_size = max(0, width * incomplete /
|
||||||
self._summary.result_total)
|
self._summary.result_total)
|
||||||
return self._get_status_bar_appearance(
|
return self._get_status_bar_appearance(width, progress_bar_size)
|
||||||
width, self._summary.is_directory_sort, progress_bar_size)
|
|
||||||
|
|
||||||
def appearance(self, dimensions):
|
def appearance(self, dimensions):
|
||||||
self._fix_listing()
|
self._fix_listing()
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,4 @@
|
||||||
│ │
|
│ │
|
||||||
│ │
|
│ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mrder [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mx[m[38;2;255;255;255m[48;2;76;76;76mdg-open directory [m
|
[m[38;2;255;255;255m[48;2;76;76;76m [m[38;2;76;255;76m[48;2;76;76;76mh[m[38;2;255;255;255m[48;2;76;76;76melp [m[38;2;76;255;76m[48;2;76;76;76mq[m[38;2;255;255;255m[48;2;76;76;76muit [m[38;2;76;255;76m[48;2;76;76;76mtab[m[38;2;255;255;255m[48;2;76;76;76m:focus [m[38;2;76;255;76m[48;2;76;76;76mt[m[38;2;255;255;255m[48;2;76;76;76murn [m[38;2;76;255;76m[48;2;76;76;76ml[m[38;2;255;255;255m[48;2;76;76;76mog [m[38;2;76;255;76m[48;2;76;76;76me[m[38;2;255;255;255m[48;2;76;76;76mdit [m[38;2;76;255;76m[48;2;76;76;76mn[m[38;2;255;255;255m[48;2;76;76;76mext [m[38;2;76;255;76m[48;2;76;76;76mo[m[38;2;255;255;255m[48;2;76;76;76mrder [m[38;2;76;255;76m[48;2;76;76;76mr[m[38;2;255;255;255m[48;2;76;76;76mefresh [m[38;2;76;255;76m[48;2;76;76;76mf[m[38;2;255;255;255m[48;2;76;76;76mullscreen [m[38;2;76;255;76m[48;2;76;76;76mx[m[38;2;255;255;255m[48;2;76;76;76mdg-open [m
|
||||||
Loading…
Add table
Add a link
Reference in a new issue