Simpler interface details.

- Consistent capitalisation.
- No unnecessary colons.
This commit is contained in:
Andrew Hamilton 2019-08-28 20:53:23 +10:00
parent db08b3f465
commit 22bffd6748
2 changed files with 4 additions and 4 deletions

View file

@ -952,7 +952,7 @@ class Screen:
divider = " " + self._listing.top * 2 + " " divider = " " + self._listing.top * 2 + " "
self._listing.title = ( self._listing.title = (
tools.path_colored(widget.path) + divider + tool_name + " " + tools.path_colored(widget.path) + divider + tool_name + " " +
tools.status_to_str(widget.status) + divider + "Line: " + str(y+1)) tools.status_to_str(widget.status) + divider + "line " + str(y+1))
_STATUS_BAR = highlight_chars( _STATUS_BAR = highlight_chars(
" *help *quit *t*a*b:focus *turn *log *edit *next *pause *order" " *help *quit *t*a*b:focus *turn *log *edit *next *pause *order"
@ -971,10 +971,10 @@ class Screen:
progress_bar_size): progress_bar_size):
bar_transparency = 0.7 bar_transparency = 0.7
ordering_text = "directory" if is_directory_sort else "type " ordering_text = "directory" if is_directory_sort else "type "
paused_indicator = (termstr.TermStr("paused ").fg_color( paused_indicator = (termstr.TermStr(" paused").fg_color(
termstr.Color.yellow) if is_paused else termstr.TermStr("running"). termstr.Color.yellow) if is_paused else termstr.TermStr("running").
fg_color(termstr.Color.blue)) fg_color(termstr.Color.blue))
indicators = " " + paused_indicator + f" order:{ordering_text} " indicators = " " + paused_indicator + f" {ordering_text} "
spacing = " " * (width - len(self._STATUS_BAR) - len(indicators)) spacing = " " * (width - len(self._STATUS_BAR) - len(indicators))
bar = (self._STATUS_BAR[:width - len(indicators)] + spacing + bar = (self._STATUS_BAR[:width - len(indicators)] + spacing +
indicators)[:width] indicators)[:width]

View file

@ -57,4 +57,4 @@
│ │ │ │
│ │ │ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘ └──────────────────────────────────────────────────────────────────────────────────────────────────┘
 help quit tab:focus turn log edit next pause order refresh fullscreen xdg running order:directory   help quit tab:focus turn log edit next pause order refresh fullscreen xdg-open running directory