diff options
Diffstat (limited to 'ranger/shared/settings.py')
-rw-r--r-- | ranger/shared/settings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index e53f31b0..63e9d4e4 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -40,6 +40,7 @@ ALLOWED_SETTINGS = { 'preview_directories': bool, 'flushinput': bool, 'colorscheme': str, + 'colorscheme_overlay': (type(None), type(lambda:0)), 'hidden_filter': lambda x: isinstance(x, str) or hasattr(x, 'match'), } @@ -136,6 +137,10 @@ class SettingsAware(object): raise Exception("The module contains no " \ "valid colorscheme!") + # Making the colorscheme SettingsAware doesn't work because + # of circular imports, so we do it like this: + settings.colorscheme.settings = settings + try: import apps except ImportError: |