# Everforest colorscheme for Ranger # Generated from template - do not edit manually # Place this file in ~/.config/ranger/colorschemes/ from __future__ import (absolute_import, division, print_function) 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, ) class everforest(ColorScheme): progress_bar_color = blue def use(self, context): fg, bg, attr = default_colors if context.reset: return default_colors elif context.in_browser: if context.selected: attr = reverse if context.empty or context.error: fg = red if context.border: fg = default if context.image: fg = magenta if context.video: fg = magenta if context.audio: fg = cyan if context.document: fg = blue if context.container: fg = yellow if context.directory: attr |= bold fg = blue elif context.executable: attr |= bold fg = green if context.socket: fg = magenta attr |= bold if context.fifo or context.device: fg = yellow if context.device: attr |= bold elif context.in_titlebar: attr |= bold if context.hostname: fg = red elif context.directory: fg = blue elif context.tab: if context.good: bg = green elif context.link: fg = cyan elif context.in_statusbar: if context.permissions: if context.good: fg = cyan elif context.bad: fg = red if context.marked: attr |= bold | reverse fg = yellow if context.message: if context.bad: attr |= bold fg = red else: fg = blue if context.loaded: bg = self.progress_bar_color if context.vcsinfo: fg = blue attr &= ~bold if context.vcscommit: fg = yellow 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.vcsconflicts: fg = red elif context.vcschanged: fg = yellow elif context.vcsunknown: fg = red elif context.vcsstaged: fg = green elif context.vcssync: fg = green elif context.vcsignored: fg = default elif context.vcsremote and not context.selected: attr &= ~bold if context.vcssync: fg = green elif context.vcsbehind: fg = red elif context.vcsahead: fg = blue elif context.vcsdiverged: fg = magenta elif context.vcsunknown: fg = red return fg, bg, attr