summary refs log tree commit diff stats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
lame the previous revision' href='/akspecs/ranger/blame/ranger/colorschemes/jungle.py?id=1c90e610de6591e8052a1056c775219b5e767002'>^
e52629c1 ^
d8bb27bd ^
b3d031a9 ^
9adf06de ^
ab41c776 ^
d8bb27bd ^
d1a1173d ^
dded3cb8 ^
d1a1173d ^

779d21f4 ^
0c480e1e ^
2be312be ^
d1a1173d ^
779d21f4 ^
d1a1173d ^

779d21f4 ^
d1a1173d ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

                                                                 
 
                                                                  
 
                                               
                                             
 
 
                      
                              
 

                                                 
 
                                                                          
                                              
                      
 

                                                    
 
                           
# This file is part of ranger, the console file manager.
# License: GNU GPL version 3, see the file "AUTHORS" for details.

from __future__ import (absolute_import, division, print_function)

from ranger.colorschemes.default import Default
from ranger.gui.color import green, red, blue


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 \
                and not context.inactive_pane:
            fg = green

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

        return fg, bg, attr