diff options
author | root <skkaushik212@gmail.com> | 2020-04-12 17:13:34 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2020-04-19 12:49:09 +0200 |
commit | 454f1779f098396b46bc8fe53a9820926a284cd4 (patch) | |
tree | b176d5a5203ac99c534071654d1af3a2dd649028 /mitmproxy/tools | |
parent | ce50e8e52dc5316f9be29bc00d0dc72fc2b0af83 (diff) | |
download | mitmproxy-454f1779f098396b46bc8fe53a9820926a284cd4.tar.gz mitmproxy-454f1779f098396b46bc8fe53a9820926a284cd4.tar.bz2 mitmproxy-454f1779f098396b46bc8fe53a9820926a284cd4.zip |
colorize json
Diffstat (limited to 'mitmproxy/tools')
-rw-r--r-- | mitmproxy/tools/console/palettes.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mitmproxy/tools/console/palettes.py b/mitmproxy/tools/console/palettes.py index 6033ff25..683afa42 100644 --- a/mitmproxy/tools/console/palettes.py +++ b/mitmproxy/tools/console/palettes.py @@ -35,6 +35,9 @@ class Palette: # Hex view 'offset', + # JSON view + 'json_string', 'json_number', 'json_boolean', + # Grid Editor 'focusfield', 'focusfield_error', 'field_error', 'editfield', @@ -170,6 +173,11 @@ class LowDark(Palette): # Hex view offset = ('dark cyan', 'default'), + # JSON view + json_string = ('dark blue', 'default'), + json_number = ('light magenta', 'default'), + json_boolean = ('dark magenta', 'default'), + # Grid Editor focusfield = ('black', 'light gray'), focusfield_error = ('dark red', 'light gray'), @@ -270,6 +278,11 @@ class LowLight(Palette): # Hex view offset = ('dark blue', 'default'), + # JSON view + json_string = ('dark blue', 'default'), + json_number = ('light magenta', 'default'), + json_boolean = ('dark magenta', 'default'), + # Grid Editor focusfield = ('black', 'light gray'), focusfield_error = ('dark red', 'light gray'), @@ -380,6 +393,11 @@ class SolarizedLight(LowLight): # Hex view offset = (sol_cyan, 'default'), + # JSON view + json_string = (sol_cyan, 'default'), + json_number = (sol_blue, 'default'), + json_boolean = (sol_magenta, 'default'), + # Grid Editor focusfield = (sol_base00, sol_base2), focusfield_error = (sol_red, sol_base2), @@ -454,6 +472,11 @@ class SolarizedDark(LowDark): # Hex view offset = (sol_cyan, 'default'), + # JSON view + json_string = (sol_cyan, 'default'), + json_number = (sol_blue, 'default'), + json_boolean = (sol_magenta, 'default'), + # Grid Editor focusfield = (sol_base0, sol_base02), focusfield_error = (sol_red, sol_base02), |