aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/color.tes
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-01 04:58:25 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-01 05:06:20 +0300
commit5d5a2044460723abd752c0898b1da474eb21bd61 (patch)
tree087ea983fb6fec0024f296499634bcd4cb31bc3a /lib/color.tes
parent5b54cd8f79fc877c0447f42bffcac40ec1f30beb (diff)
downloadsciteco-5d5a2044460723abd752c0898b1da474eb21bd61.tar.gz
GTK: improved the RGB values of the 16 default colors
* Using the same values as on Curses/scinterm resulted in too dark colors with terminal.tes. (solarized.tes actually defines all colors with its own RGB values, so the look has always been consistent between Curses and GTK.) This is because the values like 0xFF0000 for red are actually just placeholders in Scinterm, in turn translated internally to Curses colors, which are interpreted by terminal emulators with possibly various different color palettes. * We therefore now use the exact RGB values as will be used by common terminal emulators like xterm and st. It does not guarantee that the colors will always match between Curses and GTK, but at least the GTK colors are now a bit brighter.
Diffstat (limited to 'lib/color.tes')
-rw-r--r--lib/color.tes66
1 files changed, 48 insertions, 18 deletions
diff --git a/lib/color.tes b/lib/color.tes
index eaa0baa..f732848 100644
--- a/lib/color.tes
+++ b/lib/color.tes
@@ -4,25 +4,55 @@
(Q.r # Q.g*256 # Q.b*256*256)
}
-!* These 8 colors should be available on every system *!
-000,000,000:M[color.rgb]U[color.black]
-128,000,000:M[color.rgb]U[color.red]
-000,128,000:M[color.rgb]U[color.green]
-128,128,000:M[color.rgb]U[color.yellow]
-000,000,128:M[color.rgb]U[color.blue]
-128,000,128:M[color.rgb]U[color.magenta]
-000,128,128:M[color.rgb]U[color.cyan]
-192,192,192:M[color.rgb]U[color.white]
+0EJ-1"=
+ !*
+ * The Curses RGB values are hardcoded by Scinterm
+ * and do not necessarily correspond to the renditions by
+ * terminal emulators.
+ *!
+ !* These 8 colors should be available on every system *!
+ 000,000,000:M[color.rgb]U[color.black]
+ 128,000,000:M[color.rgb]U[color.red]
+ 000,128,000:M[color.rgb]U[color.green]
+ 128,128,000:M[color.rgb]U[color.yellow]
+ 000,000,128:M[color.rgb]U[color.blue]
+ 128,000,128:M[color.rgb]U[color.magenta]
+ 000,128,128:M[color.rgb]U[color.cyan]
+ 192,192,192:M[color.rgb]U[color.white]
-!* Light color variants, might not be available on every terminal *!
-064,064,064:M[color.rgb]U[color.lblack]
-255,000,000:M[color.rgb]U[color.lred]
-000,255,000:M[color.rgb]U[color.lgreen]
-255,255,000:M[color.rgb]U[color.lyellow]
-000,000,255:M[color.rgb]U[color.lblue]
-255,000,255:M[color.rgb]U[color.lmagenta]
-000,255,255:M[color.rgb]U[color.lcyan]
-255,255,255:M[color.rgb]U[color.lwhite]
+ !* Light color variants, might not be available on every terminal *!
+ 064,064,064:M[color.rgb]U[color.lblack]
+ 255,000,000:M[color.rgb]U[color.lred]
+ 000,255,000:M[color.rgb]U[color.lgreen]
+ 255,255,000:M[color.rgb]U[color.lyellow]
+ 000,000,255:M[color.rgb]U[color.lblue]
+ 255,000,255:M[color.rgb]U[color.lmagenta]
+ 000,255,255:M[color.rgb]U[color.lcyan]
+ 255,255,255:M[color.rgb]U[color.lwhite]
+|
+ !*
+ * The GTK RGB values are the ones used by common terminal
+ * emulators. This should ensure that color schemes based
+ * on the 16 default colors look similar on Curses and GTK.
+ *!
+ 000,000,000:M[color.rgb]U[color.black]
+ 205,000,000:M[color.rgb]U[color.red]
+ 000,205,000:M[color.rgb]U[color.green]
+ 205,205,000:M[color.rgb]U[color.yellow]
+ 000,000,238:M[color.rgb]U[color.blue]
+ 205,000,205:M[color.rgb]U[color.magenta]
+ 000,205,205:M[color.rgb]U[color.cyan]
+ 229,229,229:M[color.rgb]U[color.white]
+
+ 127,127,127:M[color.rgb]U[color.lblack]
+ 255,000,000:M[color.rgb]U[color.lred]
+ 000,255,000:M[color.rgb]U[color.lgreen]
+ 255,255,000:M[color.rgb]U[color.lyellow]
+ 092,092,255:M[color.rgb]U[color.lblue]
+ 255,000,255:M[color.rgb]U[color.lmagenta]
+ 000,255,255:M[color.rgb]U[color.lcyan]
+ 255,255,255:M[color.rgb]U[color.lwhite]
+'
!* <[[flags,]bg,]fg,style>M[color.set] *!
@[color.set]{