Made the cursor always white.
- With the dimmer status colors a white cursor always stands out. - Also made yellow a little darker to help.
This commit is contained in:
parent
f7abd189c3
commit
7d6d9d88eb
4 changed files with 6 additions and 13 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
│ (B[m[38;2;255;255;255m[48;2;139;0;0m (B[m[38;2;255;255;255m[48;2;0;0;0m Problem │
|
│ (B[m[38;2;255;255;255m[48;2;139;0;0m (B[m[38;2;255;255;255m[48;2;0;0;0m Problem │
|
||||||
│ (B[m[38;2;255;255;255m[48;2;100;100;100m (B[m[38;2;255;255;255m[48;2;0;0;0m Not applicable │
|
│ (B[m[38;2;255;255;255m[48;2;100;100;100m (B[m[38;2;255;255;255m[48;2;0;0;0m Not applicable │
|
||||||
│ (B[m[38;2;255;255;255m[48;2;90;90;255m (B[m[38;2;255;255;255m[48;2;0;0;0m Running │
|
│ (B[m[38;2;255;255;255m[48;2;90;90;255m (B[m[38;2;255;255;255m[48;2;0;0;0m Running │
|
||||||
│ (B[m[38;2;255;255;255m[48;2;255;255;0m (B[m[38;2;255;255;255m[48;2;0;0;0m Paused │
|
│ (B[m[38;2;255;255;255m[48;2;255;211;0m (B[m[38;2;255;255;255m[48;2;0;0;0m Paused │
|
||||||
│ (B[m[38;2;255;255;255m[48;2;200;0;200m (B[m[38;2;255;255;255m[48;2;0;0;0m Timed out │
|
│ (B[m[38;2;255;255;255m[48;2;200;0;200m (B[m[38;2;255;255;255m[48;2;0;0;0m Timed out │
|
||||||
│ . Pending │
|
│ . Pending │
|
||||||
│ (B[m[38;2;255;255;255m[48;2;255;0;0mE(B[m[38;2;255;255;255m[48;2;0;0;0m Error │
|
│ (B[m[38;2;255;255;255m[48;2;255;0;0mE(B[m[38;2;255;255;255m[48;2;0;0;0m Error │
|
||||||
|
|
|
||||||
|
|
@ -98,10 +98,8 @@ class Entry(collections.UserList):
|
||||||
result_selected = self.widget[self.highlighted]
|
result_selected = self.widget[self.highlighted]
|
||||||
status_color = tools._STATUS_COLORS.get(
|
status_color = tools._STATUS_COLORS.get(
|
||||||
result_selected.status, None)
|
result_selected.status, None)
|
||||||
fg_color = tools.STATUS_CURSOR_COLORS.get(result_selected.status,
|
|
||||||
termstr.Color.white)
|
|
||||||
return fill3.Text(termstr.TermStr("+", termstr.CharStyle(
|
return fill3.Text(termstr.TermStr("+", termstr.CharStyle(
|
||||||
fg_color=fg_color, bg_color=status_color)))
|
fg_color=termstr.Color.white, bg_color=status_color)))
|
||||||
|
|
||||||
def appearance_min(self):
|
def appearance_min(self):
|
||||||
# 'appearance' local variable exists because appearance_cache can
|
# 'appearance' local variable exists because appearance_cache can
|
||||||
|
|
@ -894,7 +892,7 @@ class Screen:
|
||||||
progress_bar_size):
|
progress_bar_size):
|
||||||
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.dark_yellow) if is_paused else termstr.TermStr("running").
|
||||||
fg_color(termstr.Color.light_blue))
|
fg_color(termstr.Color.light_blue))
|
||||||
indicators = " " + paused_indicator + f" order:{ordering_text} "
|
indicators = " " + paused_indicator + f" order:{ordering_text} "
|
||||||
spacing = " " * (width - len(self._STATUS_BAR) - len(indicators))
|
spacing = " " * (width - len(self._STATUS_BAR) - len(indicators))
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ class Color:
|
||||||
dark_red = (139, 0, 0)
|
dark_red = (139, 0, 0)
|
||||||
lime = (0, 255, 0)
|
lime = (0, 255, 0)
|
||||||
yellow = (255, 255, 0)
|
yellow = (255, 255, 0)
|
||||||
|
dark_yellow = (255, 211, 0)
|
||||||
|
# dark_yellow = (204, 204, 0)
|
||||||
grey_50 = (50, 50, 50)
|
grey_50 = (50, 50, 50)
|
||||||
grey_100 = (100, 100, 100)
|
grey_100 = (100, 100, 100)
|
||||||
grey_150 = (150, 150, 150)
|
grey_150 = (150, 150, 150)
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ _STATUS_COLORS = {Status.ok: termstr.Color.green,
|
||||||
Status.normal: termstr.Color.grey_150,
|
Status.normal: termstr.Color.grey_150,
|
||||||
Status.not_applicable: termstr.Color.grey_100,
|
Status.not_applicable: termstr.Color.grey_100,
|
||||||
Status.running: termstr.Color.light_blue,
|
Status.running: termstr.Color.light_blue,
|
||||||
Status.paused: termstr.Color.yellow,
|
Status.paused: termstr.Color.dark_yellow,
|
||||||
Status.timed_out: termstr.Color.purple}
|
Status.timed_out: termstr.Color.purple}
|
||||||
STATUS_MEANINGS = [
|
STATUS_MEANINGS = [
|
||||||
(Status.normal, "Normal"), (Status.ok, "Ok"),
|
(Status.normal, "Normal"), (Status.ok, "Ok"),
|
||||||
|
|
@ -73,13 +73,6 @@ _STATUS_TO_TERMSTR = {
|
||||||
_STATUS_TO_TERMSTR[Status.error] = termstr.TermStr(
|
_STATUS_TO_TERMSTR[Status.error] = termstr.TermStr(
|
||||||
"E", termstr.CharStyle(bg_color=termstr.Color.red))
|
"E", termstr.CharStyle(bg_color=termstr.Color.red))
|
||||||
_STATUS_TO_TERMSTR[Status.pending] = "."
|
_STATUS_TO_TERMSTR[Status.pending] = "."
|
||||||
STATUS_CURSOR_COLORS = {Status.ok: termstr.Color.black,
|
|
||||||
Status.problem: termstr.Color.white,
|
|
||||||
Status.normal: termstr.Color.black,
|
|
||||||
Status.not_applicable: termstr.Color.white,
|
|
||||||
Status.running: termstr.Color.white,
|
|
||||||
Status.paused: termstr.Color.black,
|
|
||||||
Status.timed_out: termstr.Color.white}
|
|
||||||
|
|
||||||
|
|
||||||
def get_ls_color_codes():
|
def get_ls_color_codes():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue