From bf5745b95ca0a0edfb0b1129835f0e48c20ef6fa Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 13 Jul 2015 23:23:53 +0200 Subject: fixed default colors in color.tes and style Q-Register view * the RGB values of the 8 standard colors defined by color.tes were wrong (i.e. did not correspond to the normal 8 color codes defined by Scinterm but only the bright versions). Except for `color.black` which referred to terminal color 0. * now we define the 16 colors defined by Scinterm, allowing color schemes to explicitly use bright color versions without using the bold attribute. On 8 color terminals, the bold attribute might still be the only way to get a bright color. * terminal.tes: Use bright default color instead of relying on bold to get bright color versions. This is especially important for comments which where relied on bold black to be rendered grey. This did not work by default on terminals supporting bold fonts (e.g. OS X Terminal) or GTK+. The scheme now works on more terminals out of the box and on GTK+ and is thus a good default color scheme. * Color schemes will now also define the default style, the line number style and caret foreground/background. `color.calltip` is now also defined for STYLE_CALLTIP and can later be used to style SciTECO's custom popup widget. --- lib/colors/terminal.tes | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) (limited to 'lib/colors') diff --git a/lib/colors/terminal.tes b/lib/colors/terminal.tes index 6303e27..b78da3f 100644 --- a/lib/colors/terminal.tes +++ b/lib/colors/terminal.tes @@ -1,22 +1,32 @@ ! Default terminal color scheme ! -[color.comment] 1,Q[color.black],Q[color.black]  -[color.number] 0,Q[color.black],Q[color.cyan]  -[color.keyword] 1,Q[color.black],Q[color.white]  -[color.string] 0,Q[color.black],Q[color.green]  -[color.string2] 1,Q[color.black],Q[color.green]  -[color.preproc] 0,Q[color.black],Q[color.magenta]  -[color.preproc2] 1,Q[color.black],Q[color.magenta]  -[color.operator] 0,Q[color.black],Q[color.yellow]  -[color.variable] 1,Q[color.black],Q[color.blue]  -[color.error] 1,Q[color.black],Q[color.red]  +[color.default] 0,Q[color.black],Q[color.white]  +[color.linenumber] 0,Q[color.black],Q[color.white]  +Q[color.black]U[color.caretline] +Q[color.white]U[color.caretfore] + +[color.calltip] 0,Q[color.lblue],Q[color.black]  + +[color.comment] 1,Q[color.black],Q[color.lblack]  +[color.number] 0,Q[color.black],Q[color.cyan]  +[color.keyword] 1,Q[color.black],Q[color.lwhite]  +[color.string] 0,Q[color.black],Q[color.green]  +[color.string2] 1,Q[color.black],Q[color.lgreen]  +[color.preproc] 0,Q[color.black],Q[color.magenta]  +[color.preproc2] 1,Q[color.black],Q[color.lmagenta]  +[color.operator] 0,Q[color.black],Q[color.yellow]  +[color.variable] 1,Q[color.black],Q[color.lblue]  +[color.error] 1,Q[color.black],Q[color.lred]  ! Makes only sense for Makefiles ! -[color.target] 1,Q[color.black],Q[color.yellow]  +[color.target] 1,Q[color.black],Q[color.lyellow]  ! Makes only sense for Patch/Diff files ! -[color.deletion] 0,Q[color.black],Q[color.red]  -[color.addition] 0,Q[color.black],Q[color.green]  -[color.change] 0,Q[color.black],Q[color.yellow]  +[color.deletion] 0,Q[color.black],Q[color.red]  +[color.addition] 0,Q[color.black],Q[color.green]  +[color.change] 0,Q[color.black],Q[color.yellow]  ! For highlighting braces ! -[color.bracelight] 1,Q[color.white],Q[color.black]  +[color.bracelight] 0,Q[color.white],Q[color.black]  + +! Style the Q-Register view ! +[* EQ.b :M[color.init] ]* -- cgit v1.2.3