From 54c8375ab74309279f5ba114a003b3af1b6cc78f Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 10 Oct 2010 02:40:33 +0200 Subject: gui.colorscheme: removed fallback scheme, should never be used anyway --- ranger/gui/colorscheme.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py index 1fa23656..5a2a97ef 100644 --- a/ranger/gui/colorscheme.py +++ b/ranger/gui/colorscheme.py @@ -100,22 +100,11 @@ class ColorScheme(SettingsAware): return attr | color_pair(get_color(fg, bg)) def use(self, context): - """ - Use the colorscheme to determine the (fg, bg, attr) tuple. - - When no colorscheme is found, ranger will fall back to this very - basic colorscheme where directories are blue and bold, and - selected files have the color inverted. + """Use the colorscheme to determine the (fg, bg, attr) tuple. Override this method in your own colorscheme. """ - fg, attr = -1, 0 - if context.highlight or context.selected: - attr = 262144 - if context.directory: - attr |= 2097152 - fg = 4 - return fg, -1, attr + return (-1, -1, 0) def _colorscheme_name_to_class(signal): # Find the colorscheme. First look in ~/.config/ranger/colorschemes, -- cgit 1.4.1-2-gfad0