about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-04-01 20:07:38 +0200
committerhut <hut@lepus.uberspace.de>2016-04-01 20:22:16 +0200
commit8389d8c1114512bffd5c4a8285b6e995ea5c42e5 (patch)
tree2eee4a0c348db475744d2080c2bc0022ca107931
parent1134e3ab15c9ec763b446b9903bf8db9828f051c (diff)
downloadranger-8389d8c1114512bffd5c4a8285b6e995ea5c42e5.tar.gz
Midnight Commander-like colors
-rw-r--r--ranger/colorschemes/default.py16
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: