about summary refs log tree commit diff stats
path: root/html/http-server.mu.html
Commit message (Expand)AuthorAgeFilesLines
* 4891Kartik Agaram2018-12-301-0/+1
* 4890 - new html renderingsKartik Agaram2018-12-291-13/+8
* 4814Kartik Agaram2018-12-011-10/+13
* 4539Kartik Agaram2018-09-071-5/+5
* 4447Kartik Agaram2018-07-271-1/+1
* 4242 - get rid of refcounts entirelyKartik Agaram2018-05-121-3/+3
* 4239Kartik Agaram2018-05-081-6/+6
* 4200Kartik K. Agaram2018-01-271-5/+5
* 4199Kartik K. Agaram2018-01-251-11/+11
* 4164Kartik K. Agaram2017-12-271-1/+1
* 4161Kartik K. Agaram2017-12-151-4/+4
* 3934Kartik K. Agaram2017-06-201-1/+1
* 3830 - crosslink shape-shifting containers in htmlKartik K. Agaram2017-04-181-2/+2
* 3764 - better colors for cross-linksKartik K. Agaram2017-03-081-3/+4
* 3761Kartik K. Agaram2017-03-071-2/+2
* 3725Kartik K. Agaram2016-12-271-1/+1
* 3716Kartik K. Agaram2016-12-261-0/+2
* 3713 - cross-link calls with definitions in htmlKartik K. Agaram2016-12-261-4/+4
* 3710Kartik K. Agaram2016-12-261-28/+28
* 3709 - line numbers in htmlKartik K. Agaram2016-12-261-31/+55
* 3604Kartik K. Agaram2016-10-271-2/+2
* 3569Kartik K. Agaram2016-10-231-5/+5
* 3543Kartik K. Agaram2016-10-221-9/+1
* 3524Kartik K. Agaram2016-10-201-38/+1
* 3491Kartik K. Agaram2016-10-091-0/+108
span class="s1">'selected', 'empty', 'maindisplay', 'message', 'background', 'good', 'bad', 'space', 'permissions', 'owner', 'group', 'mtime', 'nlink', 'scroll', 'all', 'bot', 'top', 'percentage', 'marked', 'text', 'highlight', 'keybuffer'] # colorscheme specification: # # A colorscheme must... # # 1. be inside either of these directories: # ~/.ranger/colorschemes/ # path/to/ranger/colorschemes/ # # 2. be a subclass ofranger.gui.colorscheme.ColorScheme # # 3. have a use(self, context) method which returns a tuple of 3 integers. # the first integer is the foreground color, the second is the background # color, the third is the attribute, as specified by the curses module. # # # define which colorscheme to use by having this to your options.py: # from ranger import colorschemes # colorscheme = colorschemes.filename # # If your colorscheme-file contains more than one colorscheme, specify it with: # colorscheme = colorschemes.filename.classname from ranger.ext.openstruct import OpenStruct class ColorScheme(object): def __init__(self): self.cache = {} def get(self, *keys): """Determine the (fg, bg, attr) tuple or get it from cache""" try: return self.cache[keys] except KeyError: context = OpenStruct() for key in CONTEXT_KEYS: context[key] = (key in keys) # add custom error messages for broken colorschemes color = self.use(context) self.cache[keys] = color return color def get_attr(self, *keys): """Returns the curses attr integer for the specified keys""" from ranger.gui.color import get_color import curses fg, bg, attr = self.get(*keys) return attr | curses.color_pair(get_color(fg, bg)) def use(self, context): """Use the colorscheme to determine the (fg, bg, attr) tuple. This is a dummy function which always returns default_colors. Override this in your custom colorscheme! """ from ranger.gui.color import default_colors return default_colors