This is a backwards-incompatible, incomplete change without
documentation updates. I wanted to have different text and xterm-style
scrollbar colors, so I just hacked the code to use Rxvt.scrollColor and
Rxvt.troughColor instead of Rxvt.foreground and Rxvt.background. A
better solution is needed. Maybe new resources Rxvt.scrollFg and
Rxvt.scrollBg, with automatic fallback to foreground and background if
these new ones are not specified?
Marius Gedminas
--
Did you know that 7/5 people don't know how to use fractions?
Index: src/scrollbar-xterm.c
===================================================================
RCS file: /cvsroot/rxvt/rxvt/src/scrollbar-xterm.c,v
retrieving revision 1.8
diff -u -r1.8 scrollbar-xterm.c
--- src/scrollbar-xterm.c 2001/03/01 05:07:04 1.8
+++ src/scrollbar-xterm.c 2001/03/06 12:54:28
@@ -50,8 +50,8 @@
exit(EXIT_FAILURE);
}
gcvalue.fill_style = FillOpaqueStippled;
- gcvalue.foreground = r->PixColors[Color_fg];
- gcvalue.background = r->PixColors[Color_bg];
+ gcvalue.foreground = r->PixColors[Color_scroll];
+ gcvalue.background = r->PixColors[Color_trough];
r->h->xscrollbarGC = XCreateGC(r->Xdisplay, r->scrollBar.win,
GCForeground | GCBackground