Fix theme fallback not working

This commit is contained in:
Kovid Goyal 2014-01-26 20:31:27 +05:30
parent 8088aad402
commit 93ddd73c31
2 changed files with 2 additions and 1 deletions

View File

@ -772,6 +772,7 @@ class DiffSplit(QSplitter): # {{{
if fmts: if fmts:
block.layout().setAdditionalFormats(fmts) block.layout().setAdditionalFormats(fmts)
# }}} # }}}
# }}} # }}}
class DiffView(QWidget): # {{{ class DiffView(QWidget): # {{{

View File

@ -233,5 +233,5 @@ def theme_color(theme, name, attr):
try: try:
return getattr(theme[name], attr).color() return getattr(theme[name], attr).color()
except (KeyError, AttributeError): except (KeyError, AttributeError):
return getattr(THEMES[default_theme()], attr).color() return getattr(THEMES[default_theme()][name], attr).color()