about summary refs log tree commit diff stats
path: root/014literal_string.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-11-05 02:00:26 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-11-05 02:00:26 -0800
commitffc9e66b3505990009e47b461eb03d3eb1635258 (patch)
tree6e7ae8df9a0143736500270da2212ee6182a8c85 /014literal_string.cc
parent53de40aa88c91150f513852e49b314f130663b64 (diff)
downloadmu-ffc9e66b3505990009e47b461eb03d3eb1635258.tar.gz
4109
Diffstat (limited to '014literal_string.cc')
0 files changed, 0 insertions, 0 deletions
ger/colorschemes/default.py?h=v1.9.0&id=bba8d293c32050b79cfc2b0ac2807f324ef44800'>^
7c5c70fd ^







1b360fba ^
7c5c70fd ^
77f59786 ^
7c5c70fd ^



7c5c70fd ^

9e09af36 ^

7c5c70fd ^




7c5c70fd ^

7c5c70fd ^
103a23b8 ^
7c5c70fd ^
4c05e43d ^
a923ead7 ^
7c5c70fd ^

7c5c70fd ^
4700f3e5 ^
20f94973 ^

548929ab ^



77f59786 ^
3201b163 ^
ffcd934f ^
3201b163 ^


7c5c70fd ^


7c5c70fd ^
0268e3c3 ^
7c5c70fd ^

7c5c70fd ^


cfdbb9d6 ^

4700f3e5 ^
cfdbb9d6 ^
4700f3e5 ^
cfdbb9d6 ^
3201b163 ^


fa10678e ^



a923ead7 ^
a78cfb7e ^







a78cfb7e ^






a396b3a0 ^



b5393406 ^
ddf828fb ^
fd04cd6f ^
ddf828fb ^



7c5c70fd ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
                                                                 
 



                                                                      
 






                                                                       
 







                                              
                                             
 
                                        



                                              

                                                          

                                            




                                                    

                                             
                                             
                                            
                                         
                                                         
                                                                                

                                            
                                        
                                                                     

                                                                       



                                                        
                                               
                                                    
                                                    


                                                    


                                         
                                            
                                                                 

                                               


                                          

                                               
                                                
                                                 
                                                 
                                                    


                                                      



                                                    
 







                                                           






                                             



                                               
                                       
                                         
                                         



                                               
                                   
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import *

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

		if context.reset:
			return default_colors

		elif context.in_browser:
			if context.selected:
				attr = reverse
			else:
				attr = normal
			if context.empty or context.error:
				bg = red
			if context.border:
				fg = default
			if context.media:
				if context.image:
					fg = yellow
				else:
					fg = magenta
			if context.container:
				fg = red
			if context.directory:
				attr |= bold
				fg = blue
			elif context.executable and not \
					any((context.media, context.container)):
				attr |= bold
				fg = green
			if context.link:
				fg = context.good and cyan or magenta
			if context.tag_marker and not context.selected:
				attr |= bold
				if fg in (red, magenta):
					fg = white
				else:
					fg = red
			if context.main_column:
				if context.selected:
					attr |= bold
				if context.marked:
					attr |= bold
					fg = yellow

		elif context.in_titlebar:
			attr |= bold
			if context.hostname:
				fg = context.bad and red or green
			elif context.directory:
				fg = blue
			elif context.link:
				fg = cyan

		elif context.in_statusbar:
			if context.permissions:
				if context.good:
					fg = cyan
				elif context.bad:
					fg = magenta
			if context.marked:
				attr |= bold | reverse
				fg = yellow
			if context.message:
				if context.bad:
					attr |= bold
					fg = red

		if context.in_pager or context.help_markup:
			if context.seperator:
				fg = red
			elif context.link:
				fg = cyan
			elif context.bars:
				fg = black
				attr |= bold
			elif context.key:
				fg = green
			elif context.special:
				fg = cyan
			elif context.title:
				attr |= bold

		if context.text:
			if context.highlight:
				attr |= reverse

		if context.in_taskview:
			if context.title:
				fg = blue

			if context.selected:
				attr |= reverse

		return fg, bg, attr