diff options
author | hut <hut@lepus.uberspace.de> | 2016-04-01 20:07:38 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-04-01 20:22:16 +0200 |
commit | 8389d8c1114512bffd5c4a8285b6e995ea5c42e5 (patch) | |
tree | 2eee4a0c348db475744d2080c2bc0022ca107931 | |
parent | 1134e3ab15c9ec763b446b9903bf8db9828f051c (diff) | |
download | ranger-8389d8c1114512bffd5c4a8285b6e995ea5c42e5.tar.gz |
Midnight Commander-like colors
-rw-r--r-- | ranger/colorschemes/default.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py index e5dbf3a6..ec12f7f9 100644 --- a/ranger/colorschemes/default.py +++ b/ranger/colorschemes/default.py @@ -14,6 +14,22 @@ class Default(ColorScheme): return default_colors elif context.in_browser: + bg = blue if context.active_pane else cyan + fg = white + + if not context.selected and context.directory: + attr |= bold + + if context.marked: + bg = red + if context.tag_marker: + fg = black + attr &= ~bold + if context.selected: + bg = cyan if context.active_pane else blue + fg = black + + elif context.in_browser: if context.selected: attr = reverse else: |