Skip to content

Commit

Permalink
Merge pull request #154 from amigrave/master
Browse files Browse the repository at this point in the history
add agr-256 theme
  • Loading branch information
inducer committed Jul 31, 2015
2 parents 79bb08a + de2700b commit 824393c
Showing 1 changed file with 126 additions and 1 deletion.
127 changes: 126 additions & 1 deletion pudb/theme.py
@@ -1,4 +1,4 @@
THEMES = ["classic", "vim", "dark vim", "midnight", "solarized"]
THEMES = ["classic", "vim", "dark vim", "midnight", "solarized", "agr-256"]

from pudb.py3compat import execfile, raw_input
import urwid
Expand Down Expand Up @@ -514,6 +514,131 @@ def add_setting(color, setting):
})

# }}}
elif theme == "agr-256":
# {{{ agr-256
palette_dict.update({
"header": ("h235", "h252", "standout"),

# {{{ variables view
"variables": ("h235", "h233"),
"variable separator": ("h23", "h252"),

"var label": ("h111", "h233"),
"var value": ("h255", "h233"),
"focused var label": ("h192", "h24"),
"focused var value": ("h192", "h24"),

"highlighted var label": ("h252", "h22"),
"highlighted var value": ("h255", "h22"),
"focused highlighted var label": ("h252", "h64"),
"focused highlighted var value": ("h255", "h64"),

"return label": ("h113", "h233"),
"return value": ("h113", "h233"),
"focused return label": (add_setting("h192", "bold"), "h24"),
"focused return value": ("h192", "h24"),
# }}}

# {{{ stack view
"stack": ("h235", "h233"),

"frame name": ("h192", "h233"),
"focused frame name": ("h192", "h24"),
"frame class": ("h111", "h233"),
"focused frame class": ("h192", "h24"),
"frame location": ("h252", "h233"),
"focused frame location": ("h192", "h24"),

"current frame name": ("h255", "h22"),
"focused current frame name": ("h255", "h64"),
"current frame class": ("h111", "h22"),
"focused current frame class": ("h255", "h64"),
"current frame location": ("h252", "h22"),
"focused current frame location": ("h255", "h64"),
# }}}

# {{{ breakpoint view
"breakpoint": ("h80", "h233"),
"focused breakpoint": ("h192", "h24"),
"current breakpoint": (add_setting("h255", "bold"), "h22"),
"focused current breakpoint": (add_setting("h255", "bold"), "h64"),
# }}}

# {{{ ui widgets

"selectable": ("h252", "h235"),
"focused selectable": ("h255", "h24"),

"button": ("h252", "h235"),
"focused button": ("h255", "h24"),

"background": ("h235", "h252"),
"hotkey": (add_setting("h235", "underline"), "h252", "underline"),
"focused sidebar": ("h23", "h252", "standout"),

"warning": (add_setting("h255", "bold"), "h124", "standout"),

"label": ("h235", "h252"),
"value": ("h255", "h17"),
"fixed value": ("h252", "h17"),
"group head": (add_setting("h25", "bold"), "h252"),

"search box": ("h255", "h235"),
"search not found": ("h255", "h124"),

"dialog title": (add_setting("h255", "bold"), "h235"),

# }}}

# {{{ source view
"breakpoint marker": ("h160", "h235"),

"breakpoint source": ("h252", "h124"),
"breakpoint focused source": ("h192", "h124"),
"current breakpoint source": ("h192", "h124"),
"current breakpoint focused source": (add_setting("h192", "bold"), "h124"),
# }}}

# {{{ highlighting
"source": ("h255", "h235"),
"focused source": ("h192", "h24"),
"highlighted source": ("h252", "h22"),
"current source": (add_setting("h252", "bold"), "h23"),
"current focused source": (add_setting("h192", "bold"), "h23"),
"current highlighted source": ("h255", "h22"),

"line number": ("h241", "h235"),
"keyword": ("h111", "h235"),

"literal": ("h173", "h235"),
"string": ("h113", "h235"),
"doublestring": ("h113", "h235"),
"singlestring": ("h113", "h235"),
"docstring": ("h113", "h235"),

"name": ("h192", "h235"),
"punctuation": ("h223", "h235"),
"comment": ("h246", "h235"),

# }}}

# {{{ shell
"command line edit": ("h255", "h233"),
"command line prompt": (add_setting("h192", "bold"), "h233"),

"command line output": ("h80", "h233"),
"command line input": ("h255", "h233"),
"command line error": ("h160", "h233"),

"focused command line output": (add_setting("h192", "bold"), "h24"),
"focused command line input": ("h255", "h24"),
"focused command line error": ("h235", "h24"),

"command line clear button": (add_setting("h255", "bold"), "h233"),
"command line focused button": ("h255", "h24"),
# }}}
})
# }}}

else:
try:
Expand Down

0 comments on commit 824393c

Please sign in to comment.