aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-04-07 11:36:42 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-04-07 11:36:42 +1200
commit6bab6f2ef1b5043bdb8263bc45429fc45d66c7e2 (patch)
treea242edf255b36f2f1fa7889559c55c559c9999ac
parent94cd704f73d5c0543dda66a861c3ae0ba1ec4330 (diff)
downloadmitmproxy-6bab6f2ef1b5043bdb8263bc45429fc45d66c7e2.tar.gz
mitmproxy-6bab6f2ef1b5043bdb8263bc45429fc45d66c7e2.tar.bz2
mitmproxy-6bab6f2ef1b5043bdb8263bc45429fc45d66c7e2.zip
console: tune palettes a bit
-rw-r--r--libmproxy/console/palettes.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/libmproxy/console/palettes.py b/libmproxy/console/palettes.py
index 52d7ab8f..e34233a6 100644
--- a/libmproxy/console/palettes.py
+++ b/libmproxy/console/palettes.py
@@ -57,7 +57,7 @@ class Palette:
if highback and high[1] == "default":
high[1] = highback
v.extend(high)
- elif highback:
+ elif highback and self.low[i][1] == "default":
high = [None, low[0], highback]
v.extend(high)
l.append(tuple(v))
@@ -73,9 +73,9 @@ class LowDark(Palette):
title = ('white,bold', 'default'),
# Status bar & heading
- heading = ('light gray', 'dark blue'),
+ heading = ('white', 'dark blue'),
heading_key = ('light cyan', 'dark blue'),
- heading_inactive = ('white', 'dark gray'),
+ heading_inactive = ('dark gray', 'light gray'),
# Help
key = ('light cyan', 'default'),
@@ -83,10 +83,10 @@ class LowDark(Palette):
text = ('light gray', 'default'),
# Options
- option_selected = ('light gray', 'dark blue'),
- option_selected_key = ('light cyan', 'dark blue'),
+ option_selected = ('black', 'light gray'),
+ option_selected_key = ('light cyan', 'light gray'),
option_active = ('light red', 'default'),
- option_active_selected = ('light red', 'dark blue'),
+ option_active_selected = ('light red', 'light gray'),
# List and Connections
method = ('dark cyan', 'default'),
@@ -120,6 +120,10 @@ class Dark(LowDark):
high = dict(
heading_inactive = ('g58', 'g11'),
intercept = ('#f60', 'default'),
+
+ option_selected = ('g85', 'g45'),
+ option_selected_key = ('light cyan', 'g50'),
+ option_active_selected = ('light red', 'g50'),
)
@@ -182,6 +186,10 @@ class Light(LowLight):
heading_key = ('#0ff,bold', '#08f'),
heading_inactive = ('g35', 'g85'),
replay = ('#0a0,bold', 'default'),
+
+ option_selected = ('black', 'g85'),
+ option_selected_key = ('dark blue', 'g85'),
+ option_active_selected = ('light red', 'g85'),
)