You are not logged in.

#1 2020-05-26 14:12:57

k395
Member
Registered: 2020-01-29
Posts: 37

[SOLVED] What's the default color scheme of termite?

I'm using termite with mostly the coloring scheme (16-color) that is obtained by unsetting the colorN options in the .config file. (I feel that this color scheme is similar to xterm's).

However I can't find any documentation on what the actual hex values are. What are these values?

The values in the default termite configuration doesn't match.

Last edited by k395 (2020-06-26 11:49:36)

Offline

#2 2020-05-26 14:38:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] What's the default color scheme of termite?

That would use the defaults from vte3 which seem to be specified (if not otherwise overriden by a theme) in vte.cc on lines 2340 through 2349:

      if (i < 16) {
         color.blue = (i & 4) ? 0xc000 : 0;
         color.green = (i & 2) ? 0xc000 : 0;
         color.red = (i & 1) ? 0xc000 : 0;
         if (i > 7) {
            color.blue += 0x3fff;
            color.green += 0x3fff;
            color.red += 0x3fff;
         }
      }

This would result in the following settings for colors 0 - 7:

0 #000000
1 #C00000
2 #00C000
3 #C0C000
4 #0000C0
5 #C000C0
6 #00C0C0
7 #C0C0C0

And the "bold" colors 8 - 15 which just increment each "C0" to be an "FF" and every "00" to be "3F", so 8 would be #3F3F3F, 9 #FF3F3F, etc.

EDIT: actually I suppose the 00's would become 40s with proper rounding from the 48-bit internal code to 24-bit html code, so 8 would be #404040, 9 #FF4040, etc.  But this would not likely make a detectable difference.

Last edited by Trilby (2020-05-26 14:44:27)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB