about summary refs log tree commit diff stats
path: root/ranger/colorschemes/jungle.py
blob: 8feeda03762a3db0f9f573dfbcecff9ec842e747 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (C) 2009, 2010, 2011  Roman Zimbelmann <romanz@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):
	progress_bar_color = green
	def use(self, context):
		fg, bg, attr = Default.use(self, context)

		if context.directory and not context.marked and not context.link:
			fg = green

		if context.in_titlebar and context.hostname:
			fg = red if context.bad else blue

		return fg, bg, attr