mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix theme fallback not working
This commit is contained in:
parent
8088aad402
commit
93ddd73c31
@ -772,6 +772,7 @@ class DiffSplit(QSplitter): # {{{
|
||||
if fmts:
|
||||
block.layout().setAdditionalFormats(fmts)
|
||||
# }}}
|
||||
|
||||
# }}}
|
||||
|
||||
class DiffView(QWidget): # {{{
|
||||
|
@ -233,5 +233,5 @@ def theme_color(theme, name, attr):
|
||||
try:
|
||||
return getattr(theme[name], attr).color()
|
||||
except (KeyError, AttributeError):
|
||||
return getattr(THEMES[default_theme()], attr).color()
|
||||
return getattr(THEMES[default_theme()][name], attr).color()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user