From 9adf06de919e2e6b1de07054bb64145c1cde9b89 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 6 Dec 2009 18:50:21 +0100 Subject: jungle color scheme --- ranger/colorschemes/jungle.py | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 ranger/colorschemes/jungle.py diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py new file mode 100644 index 00000000..5f575238 --- /dev/null +++ b/ranger/colorschemes/jungle.py @@ -0,0 +1,50 @@ +from ranger.gui.colorscheme import ColorScheme +from ranger.gui.color import * + +class Default(ColorScheme): + def use(self, context): + fg, bg, attr = default_colors + + if context.reset: + pass + + elif context.in_display: + if context.selected: + attr = reverse + else: + attr = normal + + if context.empty or context.error: + bg = red + + if context.media: + fg = magenta # fruits + + if context.container: + fg = red # flowers + + if context.directory: + fg = green # trees =) + + elif context.executable and not any((context.media, context.container)): + fg = yellow # banananas + + if context.link: + fg = cyan + + if context.maindisplay and context.selected: + attr |= bold + + elif context.in_titlebar: + attr |= bold + + if context.hostname: + fg = green + + elif context.directory: + fg = blue + + elif context.link: + fg = cyan + + return fg, bg, attr -- cgit 1.4.1-2-gfad0