summary refs log tree commit diff stats
path: root/ranger/shared/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/shared/settings.py')
-rw-r--r--ranger/shared/settings.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index c01e5796..b549bd20 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -79,14 +79,15 @@ class SettingsAware(object):
 			options.colorscheme = options.colorscheme()
 
 		elif ismodule(options.colorscheme):
-			if hasattr(options.colorscheme, 'Default') \
-			and isclass(options.colorscheme.Default) \
-			and issubclass(options.colorscheme.Default, ColorScheme):
-				options.colorscheme = options.colorscheme.Default()
+			def is_scheme(x):
+				return isclass(x) and issubclass(x, ColorScheme)
+
+			if hasattr(options.colorscheme, 'Scheme') \
+					and is_scheme(options.colorscheme.Scheme):
+				options.colorscheme = options.colorscheme.Scheme()
 			else:
 				for name, var in options.colorscheme.__dict__.items():
-					if var != ColorScheme and isclass(var) \
-					and issubclass(var, ColorScheme):
+					if var != ColorScheme and is_scheme(var):
 						options.colorscheme = var()
 						break
 				else: