diff options
author | Maximilian Hils <git@maximilianhils.com> | 2020-04-19 17:44:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 17:44:17 +0200 |
commit | 3c1a184c5d440e08726d758ba4693f4a51e50433 (patch) | |
tree | fa2297f519df360922760d7068ca0e0e15505980 /mitmproxy/tools/console/palettes.py | |
parent | 2774928319b706d8b6f85919f8811776342986c9 (diff) | |
parent | ca74ec3c774345bccc0e4e90fe6c231ce598663c (diff) | |
download | mitmproxy-3c1a184c5d440e08726d758ba4693f4a51e50433.tar.gz mitmproxy-3c1a184c5d440e08726d758ba4693f4a51e50433.tar.bz2 mitmproxy-3c1a184c5d440e08726d758ba4693f4a51e50433.zip |
Merge pull request #3929 from sarthak212/colorizejson
colorize json
Diffstat (limited to 'mitmproxy/tools/console/palettes.py')
-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 0a1dd8df..a680a5a7 100644 --- a/mitmproxy/tools/console/palettes.py +++ b/mitmproxy/tools/console/palettes.py @@ -34,6 +34,9 @@ class Palette: # Hex view 'offset', + # JSON view + 'json_string', 'json_number', 'json_boolean', + # Grid Editor 'focusfield', 'focusfield_error', 'field_error', 'editfield', @@ -169,6 +172,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'), @@ -269,6 +277,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'), @@ -379,6 +392,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), @@ -452,6 +470,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), |