Trying more subdued colours for the statuses.

- This will also let the cursor line stand out more.
This commit is contained in:
Andrew Hamilton 2018-06-16 10:13:29 +10:00
parent 8289e22919
commit 293f013236
6 changed files with 19 additions and 14 deletions

View file

@ -26,10 +26,10 @@
(Bf(B - Resize the focused pane to the full screen. (toggle) │
│ │
│Statuses: │
(B (B Normal │
(B (B Ok │
(B (B Problem │
(B (B Not applicable │
(B (B Normal │
(B (B Ok │
(B (B Problem │
(B (B Not applicable │
(B (B Running │
(B (B Paused │
(B (B Timed out │

View file

@ -1,4 +1,4 @@
(B
(B> def hi():(B
(B> print("hi")(B
(B> def hi():(B
(B> print("hi")(B

View file

@ -1,4 +1,4 @@
(B
(B> def hi():(B
(B> print "hi"(B
(B> def hi():(B
(B> print "hi"(B

View file

@ -161,7 +161,7 @@ def change_background(str_, new_background):
def in_green(str_):
return termstr.TermStr(str_, termstr.CharStyle(termstr.Color.green))
return termstr.TermStr(str_, termstr.CharStyle(termstr.Color.lime))
_UP, _DOWN, _LEFT, _RIGHT = (0, -1), (0, 1), (-1, 0), (1, 0)
@ -446,7 +446,7 @@ class Summary:
class Log:
_GREY_BOLD_STYLE = termstr.CharStyle(termstr.Color.grey_100, is_bold=True)
_GREEN_STYLE = termstr.CharStyle(termstr.Color.green)
_GREEN_STYLE = termstr.CharStyle(termstr.Color.lime)
LOG_PATH = os.path.join(tools.CACHE_PATH, "log")
def __init__(self, appearance_changed_event):

View file

@ -38,13 +38,18 @@ class Color:
black = (0, 0, 0)
white = (255, 255, 255)
red = (255, 0, 0)
green = (0, 255, 0)
green = (0, 128, 0)
blue = (0, 0, 255)
dark_red = (139, 0, 0)
lime = (0, 255, 0)
yellow = (255, 255, 0)
grey_50 = (50, 50, 50)
grey_100 = (100, 100, 100)
grey_150 = (150, 150, 150)
light_blue = (90, 90, 255)
purple = (200, 0, 200)
brown = (150, 75, 0)
orange = (255, 153, 0)
class CharStyle:

View file

@ -54,9 +54,9 @@ class Status(enum.IntEnum):
_STATUS_COLORS = {Status.ok: termstr.Color.green,
Status.problem: termstr.Color.red,
Status.normal: termstr.Color.white,
Status.not_applicable: termstr.Color.grey_100,
Status.problem: termstr.Color.dark_red,
Status.normal: termstr.Color.grey_150,
Status.not_applicable: termstr.Color.brown,
Status.running: termstr.Color.light_blue,
Status.paused: termstr.Color.yellow,
Status.timed_out: termstr.Color.purple}