1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: scrollbar-next.c |
2 | * File: scrollbar-next.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: scrollbar-next.C,v 1.3 2003/11/25 11:52:42 pcg Exp $ |
4 | * $Id: scrollbar-next.C,v 1.4 2003/12/18 02:07:12 pcg Exp $ |
5 | * |
5 | * |
6 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
6 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
7 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
7 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
8 | * - N*XTstep like scrollbars |
8 | * - N*XTstep like scrollbars |
9 | * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> |
9 | * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> |
… | |
… | |
158 | GCForeground | GCGraphicsExposures, &gcvalue); |
158 | GCForeground | GCGraphicsExposures, &gcvalue); |
159 | |
159 | |
160 | xcol.red = 0xaeba; |
160 | xcol.red = 0xaeba; |
161 | xcol.green = 0xaaaa; |
161 | xcol.green = 0xaaaa; |
162 | xcol.blue = 0xaeba; |
162 | xcol.blue = 0xaeba; |
163 | if (!rxvt_rXAllocColor(aR_ &xcol, "light gray")) |
163 | //if (!rxvt_rXAllocColor(aR_ &xcol, "light gray"))//TODO//D// |
164 | xcol.pixel = R->PixColors[Color_AntiqueWhite]; |
164 | xcol.pixel = R->PixColors[Color_AntiqueWhite]; |
165 | light = gcvalue.foreground = xcol.pixel; |
165 | light = gcvalue.foreground = xcol.pixel; |
166 | R->grayGC = XCreateGC(R->Xdisplay, R->scrollBar.win, |
166 | R->grayGC = XCreateGC(R->Xdisplay, R->scrollBar.win, |
167 | GCForeground | GCGraphicsExposures, &gcvalue); |
167 | GCForeground | GCGraphicsExposures, &gcvalue); |
168 | |
168 | |
169 | xcol.red = 0x51aa; |
169 | xcol.red = 0x51aa; |
170 | xcol.green = 0x5555; |
170 | xcol.green = 0x5555; |
171 | xcol.blue = 0x5144; |
171 | xcol.blue = 0x5144; |
172 | if (!rxvt_rXAllocColor(aR_ &xcol, "dark gray")) |
172 | //if (!rxvt_rXAllocColor(aR_ &xcol, "dark gray"))//TODO//D// |
173 | xcol.pixel = R->PixColors[Color_Grey25]; |
173 | xcol.pixel = R->PixColors[Color_Grey25]; |
174 | dark = gcvalue.foreground = xcol.pixel; |
174 | dark = gcvalue.foreground = xcol.pixel; |
175 | R->darkGC = XCreateGC(R->Xdisplay, R->scrollBar.win, |
175 | R->darkGC = XCreateGC(R->Xdisplay, R->scrollBar.win, |
176 | GCForeground | GCGraphicsExposures, &gcvalue); |
176 | GCForeground | GCGraphicsExposures, &gcvalue); |
177 | |
177 | |