summary refs log tree commit diff stats
path: root/ranger/colorschemes/snow.py
blob: 7b191e12ff2f7bbb364526902e834fac25eb83fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import *

class Snow(ColorScheme):
	def use(self, context):
		fg, bg, attr = default_colors

		if context.reset:
			pass

		elif context.in_browser:
			if context.selected:
				attr = reverse
			else:
				attr = normal

			if context.directory:
				attr |= bold

		if context.highlight:
			attr |= reverse

		return fg, bg, attr