aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/palettes.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/console/palettes.py')
-rw-r--r--libmproxy/console/palettes.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/libmproxy/console/palettes.py b/libmproxy/console/palettes.py
index 39d49dd4..6e0ef7fe 100644
--- a/libmproxy/console/palettes.py
+++ b/libmproxy/console/palettes.py
@@ -13,9 +13,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+palettes = {
# Default palette for dark background
-dark = [
+ 'dark': [
# name, foreground, background, mono, foreground_high, background_high
# For details on the meaning of the elements refer to
# http://excess.org/urwid/reference.html#Screen-register_palette
@@ -61,10 +62,10 @@ dark = [
('focusfield_error', 'dark red', 'light gray'),
('field_error', 'dark red', 'black'),
('editfield', 'black', 'light cyan'),
-]
+ ],
# Palette for light background
-light = [
+ 'light': [
('body', 'black', 'dark cyan'),
('foot', 'dark gray', 'default'),
('title', 'white,bold', 'light blue',),
@@ -106,13 +107,13 @@ light = [
('focusfield_error', 'dark red', 'light gray'),
('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 = [
+ 'solarized_dark': [
('body', 'dark cyan', 'default'),
('foot', 'dark gray', 'default'),
('title', 'white,bold', 'default',),
@@ -155,10 +156,10 @@ solarized_dark = [
('focusfield_error', 'dark red', 'light gray'),
('field_error', 'dark red', 'black'),
('editfield', 'black', 'light gray'),
-]
+ ],
# For light backgrounds
-solarized_light = [
+ 'solarized_light': [
('body', 'dark cyan', 'default'),
('foot', 'dark gray', 'default'),
('title', 'white,bold', 'light cyan',),
@@ -201,4 +202,6 @@ solarized_light = [
('focusfield_error', 'dark red', 'light gray'),
('field_error', 'dark red', 'black'),
('editfield', 'white', 'light cyan'),
-]
+ ],
+
+}