about summary refs log tree commit diff stats
path: root/subx/100index
blob: 355b43d317f9f51614b9ed9bc41f273ae7ff8db1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
-- Overview of layers
0-9: infrastructure independent of this program
10-29: level 1, the SubX subset of the 32-bit x86 ISA
30-39: level 2, moving past counting bytes with operands and labels

See layer 29 for the description of 'level'.

--- Overview of tracing depths
0: errors
1-98: app level traces for different SubX programs
99: low-level details of the VM
: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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:
			pass

		elif context.in_browser:
			if context.selected:
				attr = reverse
			else:
				attr = normal

			if context.empty or context.error:
				bg = red

			if context.media:
				fg = magenta # fruits

			if context.container:
				fg = red # flowers

			if context.directory:
				fg = green # trees =)

			elif context.executable and not \
					any((context.media, context.container)):
				fg = yellow # banananas

			if context.link:
				fg = context.good and cyan or magenta

			if context.main_column and context.selected:
				attr |= bold

		elif context.in_titlebar:
			attr |= bold

			if context.hostname:
				fg = green

			elif context.directory:
				fg = blue

			elif context.link:
				fg = cyan

			elif context.keybuffer:
				fg = yellow
				attr = normal

		elif context.in_statusbar:
			if context.permissions or context.link:
				if context.good:
					fg = cyan
				elif context.bad:
					fg = magenta

		return fg, bg, attr