# Path: ranger/gui/colorscheme.py
# class ColorScheme(object):
#     """This is the class that colorschemes must inherit from.
# 
#     it defines the get() method, which returns the color tuple
#     which fits to the given keys.
#     """
# 
#     @cached_function
#     def get(self, *keys):
#         """Returns the (fg, bg, attr) for the given keys.
# 
#         Using this function rather than use() will cache all
#         colors for faster access.
#         """
#         context = Context(keys)
#         color = self.use(context)
#         if len(color) != 3 or not all(isinstance(value, int) for value in color):
#             raise ValueError("Bad Value from colorscheme.  Need "
#                              "a tuple of (foreground_color, background_color, attribute).")
#         return color
# 
#     @cached_function
#     def get_attr(self, *keys):
#         """Returns the curses attribute for the specified keys
# 
#         Ready to use for curses.setattr()
#         """
#         fg, bg, attr = self.get(*flatten(keys))
#         return attr | color_pair(get_color(fg, bg))
# 
#     @staticmethod
#     def use(_):
#         """Use the colorscheme to determine the (fg, bg, attr) tuple.
# 
#         Override this method in your own colorscheme.
#         """
#         return (-1, -1, 0)


from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import (
    black, blue, cyan, green, magenta, red, white, yellow, default,
    normal, bold, reverse, dim, BRIGHT,
    default_colors,
)
            if context.vcscommit:
                fg = yellow
                attr &= ~bold
            if context.vcsdate:
                fg = cyan
                attr &= ~bold

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

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

            if context.selected:
                attr |= reverse

            if context.loaded:
                if context.selected:
                    fg = self.progress_bar_color
                else:
                    bg = self.progress_bar_color

        if context.vcsfile and not context.selected:
            attr &= ~bold
            if context.vcsconflict:
                fg = magenta
            elif context.vcsuntracked:
                fg = cyan

# Path: ranger/gui/colorscheme.py
# class ColorScheme(object):
#     """This is the class that colorschemes must inherit from.
# 
#     it defines the get() method, which returns the color tuple
#     which fits to the given keys.
#     """
# 
#     @cached_function
#     def get(self, *keys):
#         """Returns the (fg, bg, attr) for the given keys.
# 
#         Using this function rather than use() will cache all
#         colors for faster access.
#         """
#         context = Context(keys)
#         color = self.use(context)
#         if len(color) != 3 or not all(isinstance(value, int) for value in color):
#             raise ValueError("Bad Value from colorscheme.  Need "
#                              "a tuple of (foreground_color, background_color, attribute).")
#         return color
# 
#     @cached_function
#     def get_attr(self, *keys):
#         """Returns the curses attribute for the specified keys
# 
#         Ready to use for curses.setattr()
#         """
#         fg, bg, attr = self.get(*flatten(keys))
#         return attr | color_pair(get_color(fg, bg))
# 
#     @staticmethod
#     def use(_):
#         """Use the colorscheme to determine the (fg, bg, attr) tuple.
# 
#         Override this method in your own colorscheme.
#         """
#         return (-1, -1, 0)


# Path: ranger/colorschemes/default.py
from ranger.gui.colorscheme import ColorScheme
from ranger.gui.color import (
    black, blue, cyan, green, magenta, red, white, yellow, default,
    normal, bold, reverse, dim, BRIGHT,
    default_colors,
)

            if context.vcscommit:
                fg = yellow
                attr &= ~bold
            if context.vcsdate:
                fg = cyan
                attr &= ~bold

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

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

            if context.selected:
                attr |= reverse

            if context.loaded:
                if context.selected:
                    fg = self.progress_bar_color
                else:
                    bg = self.progress_bar_color

        if context.vcsfile and not context.selected:
            attr &= ~bold
            if context.vcsconflict:
                fg = magenta
            elif context.vcsuntracked:
                fg = cyan

            elif context.vcschanged: