aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/palettes.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-19 18:42:03 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-03-19 18:42:03 +1300
commit7e9a5e66fef6fcd3bda5c245be4c9b7d62daf2d6 (patch)
tree745750acb79b7e01b755d44d40c96148b1c57c45 /libmproxy/console/palettes.py
parent32a674948f198bd891720725a9503365bc57e261 (diff)
downloadmitmproxy-7e9a5e66fef6fcd3bda5c245be4c9b7d62daf2d6.tar.gz
mitmproxy-7e9a5e66fef6fcd3bda5c245be4c9b7d62daf2d6.tar.bz2
mitmproxy-7e9a5e66fef6fcd3bda5c245be4c9b7d62daf2d6.zip
Reinstate solarized_dark and solarized_light palettes.
Diffstat (limited to 'libmproxy/console/palettes.py')
-rw-r--r--libmproxy/console/palettes.py186
1 files changed, 93 insertions, 93 deletions
diff --git a/libmproxy/console/palettes.py b/libmproxy/console/palettes.py
index f4ae55d1..228766bc 100644
--- a/libmproxy/console/palettes.py
+++ b/libmproxy/console/palettes.py
@@ -157,102 +157,102 @@ class Light(LowLight):
)
+class SolarizedLight(LowLight):
+ high = dict(
+ body = ('dark cyan', 'default'),
+ food = ('dark gray', 'default'),
+ title = ('white,bold', 'light cyan'),
+ editline = ('white', 'default'),
+
+ # Status bar & heading
+ heading = ('light cyan', 'light gray'),
+ heading_key = ('dark blue', 'white'),
+ heading_inactive = ('white', 'light gray'),
+
+ # 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'),
+
+ # Grid Editor
+ focusfield = ('black', 'light gray'),
+ focusfield_error = ('dark red', 'light gray'),
+ field_error = ('dark red', 'black'),
+ editfield = ('white', 'light cyan'),
+ )
+
+class SolarizedDark(LowDark):
+ high = dict(
+ 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', 'light gray',),
+
+ # 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'),
+
+ # Grid Editor
+ focusfield = ('white', 'light cyan'),
+ focusfield_error = ('dark red', 'light gray'),
+ field_error = ('dark red', 'black'),
+ editfiled = ('black', 'light gray'),
+ )
+
+
palettes = {
"lowlight": LowLight(),
"lowdark": LowDark(),
"light": Light(),
"dark": Dark(),
-
-# # 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', 'light gray',),
-#
-# # 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', 'light cyan',),
-# ('editline', 'white', 'default',),
-#
-# # Status bar & heading
-# ('heading', 'light cyan', 'light gray',),
-# ('heading_key', 'dark blue', 'white',),
-# ('heading_inactive', 'white', 'light gray',),
-#
-# # 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'),
-# ],
-
+ "solarized_light": SolarizedLight(),
+ "solarized_dark": SolarizedDark(),
}