aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2012-06-29 12:24:59 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2012-06-29 12:45:02 +0200
commit3b80e8dd02a91e70ddffaa96452da53ee4e93368 (patch)
treede1582f482d83b325434ddcae9008bc5d1cd41d7 /libmproxy
parente287eac462040275d7f02d113b4d261c4d2ccaac (diff)
downloadmitmproxy-3b80e8dd02a91e70ddffaa96452da53ee4e93368.tar.gz
mitmproxy-3b80e8dd02a91e70ddffaa96452da53ee4e93368.tar.bz2
mitmproxy-3b80e8dd02a91e70ddffaa96452da53ee4e93368.zip
Add palettes for Solarized terminal color profiles
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/console/palettes.py95
1 files changed, 95 insertions, 0 deletions
diff --git a/libmproxy/console/palettes.py b/libmproxy/console/palettes.py
index 7e36809b..d7c78c74 100644
--- a/libmproxy/console/palettes.py
+++ b/libmproxy/console/palettes.py
@@ -107,3 +107,98 @@ light = [
('field_error', 'dark red', 'black'),
('editfield', 'black', 'light cyan'),
]
+
+# Palettes for terminals that use the Solarized precision colors
+# (http://ethanschoonover.com/solarized#the-values)
+
+# For dark backgrounds
+solarized_dark = [
+ ('body', 'dark cyan', 'default'),
+ ('foot', 'dark gray', 'default'),
+ ('title', 'white,bold', 'default',),
+ ('editline', 'white', 'default',),
+
+ # Status bar & heading
+ ('heading', 'light gray', 'light cyan',),
+ ('heading_key', 'dark blue', 'white',),
+ ('heading_inactive', 'light cyan', 'default',),
+
+ # Help
+ ('key', 'dark blue', 'default',),
+ ('head', 'white,underline', 'default'),
+ ('text', 'light cyan', 'default'),
+
+ # List and Connections
+ ('method', 'dark cyan', 'default'),
+ ('focus', 'white', 'default'),
+
+ ('code_200', 'dark green', 'default'),
+ ('code_300', 'light blue', 'default'),
+ ('code_400', 'dark red', 'default',),
+ ('code_500', 'dark red', 'default'),
+ ('code_other', 'light red', 'default'),
+
+ ('error', 'light red', 'default'),
+
+ ('header', 'yellow', 'default'),
+ ('highlight', 'white', 'default'),
+ ('intercept', 'brown', 'default',),
+ ('replay', 'dark green', 'default',),
+ ('ack', 'dark red', 'default'),
+
+ # Hex view
+ ('offset', 'yellow', 'default'),
+ ('text', 'light cyan', 'default'),
+
+ # Grid Editor
+ ('focusfield', 'white', 'light cyan'),
+ ('focusfield_error', 'dark red', 'light gray'),
+ ('field_error', 'dark red', 'black'),
+ ('editfield', 'black', 'light gray'),
+]
+
+# For light backgrounds
+solarized_light = [
+ ('body', 'dark cyan', 'default'),
+ ('foot', 'dark gray', 'default'),
+ ('title', 'white,bold', 'default',),
+ ('editline', 'white', 'default',),
+
+ # Status bar & heading
+ ('heading', 'white,standout', 'light cyan',),
+ ('heading_key', 'dark blue', 'white',),
+ ('heading_inactive', 'light gray', 'default',),
+
+ # Help
+ ('key', 'dark blue', 'default',),
+ ('head', 'black,underline', 'default'),
+ ('text', 'light cyan', 'default'),
+
+ # List and Connections
+ ('method', 'dark cyan', 'default'),
+ ('focus', 'black', 'default'),
+
+ ('code_200', 'dark green', 'default'),
+ ('code_300', 'light blue', 'default'),
+ ('code_400', 'dark red', 'default',),
+ ('code_500', 'dark red', 'default'),
+ ('code_other', 'light red', 'default'),
+
+ ('error', 'light red', 'default'),
+
+ ('header', 'light cyan', 'default'),
+ ('highlight', 'black,bold', 'default'),
+ ('intercept', 'brown', 'default',),
+ ('replay', 'dark green', 'default',),
+ ('ack', 'dark red', 'default'),
+
+ # Hex view
+ ('offset', 'light cyan', 'default'),
+ ('text', 'yellow', 'default'),
+
+ # Grid Editor
+ ('focusfield', 'black', 'light gray'),
+ ('focusfield_error', 'dark red', 'light gray'),
+ ('field_error', 'dark red', 'black'),
+ ('editfield', 'white', 'light cyan'),
+]