]> git.rmz.io Git - dotfiles.git/blobdiff - ranger/colorschemes/custom.py
ranger: appearance settings
[dotfiles.git] / ranger / colorschemes / custom.py
diff --git a/ranger/colorschemes/custom.py b/ranger/colorschemes/custom.py
new file mode 100644 (file)
index 0000000..df34816
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright (C) 2009-2013  Roman Zimbelmann <hut@lavabit.com>
+# This software is distributed under the terms of the GNU GPL version 3.
+
+from ranger.gui.color import *
+from ranger.colorschemes.default import Default
+
+class Scheme(Default):
+    def use(self, context):
+        fg, bg, attr = Default.use(self, context)
+
+        if context.in_browser:
+            if context.border:
+                fg = 237
+
+        return fg, bg, attr