… | |
… | |
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
24 | *----------------------------------------------------------------------*/ |
24 | *----------------------------------------------------------------------*/ |
25 | |
25 | |
26 | #include "../config.h" /* NECESSARY */ |
26 | #include "../config.h" /* NECESSARY */ |
27 | #include "rxvt.h" /* NECESSARY */ |
27 | #include "rxvt.h" /* NECESSARY */ |
28 | #include "scrollbar-next.intpro" /* PROTOS for internal routines */ |
|
|
29 | |
28 | |
30 | /*----------------------------------------------------------------------*/ |
29 | /*----------------------------------------------------------------------*/ |
31 | #if defined(NEXT_SCROLLBAR) |
30 | #if defined(NEXT_SCROLLBAR) |
32 | |
31 | |
33 | #define n_stp_width 8 |
32 | #define n_stp_width 8 |
… | |
… | |
152 | Pixmap stipple; |
151 | Pixmap stipple; |
153 | unsigned long light, dark; |
152 | unsigned long light, dark; |
154 | |
153 | |
155 | gcvalue.graphics_exposures = False; |
154 | gcvalue.graphics_exposures = False; |
156 | |
155 | |
157 | gcvalue.foreground = PixColors[Color_Black]; |
156 | gcvalue.foreground = pix_colors[Color_Black]; |
158 | blackGC = XCreateGC (display->display, scrollBar.win, |
157 | blackGC = XCreateGC (display->display, scrollBar.win, |
159 | GCForeground | GCGraphicsExposures, &gcvalue); |
158 | GCForeground | GCGraphicsExposures, &gcvalue); |
160 | |
159 | |
161 | gcvalue.foreground = PixColors[Color_White]; |
160 | gcvalue.foreground = pix_colors[Color_White]; |
162 | whiteGC = XCreateGC (display->display, scrollBar.win, |
161 | whiteGC = XCreateGC (display->display, scrollBar.win, |
163 | GCForeground | GCGraphicsExposures, &gcvalue); |
162 | GCForeground | GCGraphicsExposures, &gcvalue); |
164 | |
163 | |
165 | xcol.red = 0xaeba; |
164 | xcol.red = 0xaeba; |
166 | xcol.green = 0xaaaa; |
165 | xcol.green = 0xaaaa; |
167 | xcol.blue = 0xaeba; |
166 | xcol.blue = 0xaeba; |
168 | //if (!rXAllocColor (&xcol, "light gray"))//TODO//D// |
167 | //if (!rXAllocColor (&xcol, "light gray"))//TODO//D// |
169 | xcol.pixel = PixColors[Color_AntiqueWhite]; |
168 | xcol.pixel = pix_colors[Color_AntiqueWhite]; |
170 | light = gcvalue.foreground = xcol.pixel; |
169 | light = gcvalue.foreground = xcol.pixel; |
171 | grayGC = XCreateGC (display->display, scrollBar.win, |
170 | grayGC = XCreateGC (display->display, scrollBar.win, |
172 | GCForeground | GCGraphicsExposures, &gcvalue); |
171 | GCForeground | GCGraphicsExposures, &gcvalue); |
173 | |
172 | |
174 | xcol.red = 0x51aa; |
173 | xcol.red = 0x51aa; |
175 | xcol.green = 0x5555; |
174 | xcol.green = 0x5555; |
176 | xcol.blue = 0x5144; |
175 | xcol.blue = 0x5144; |
177 | //if (!rXAllocColor (&xcol, "dark gray"))//TODO//D// |
176 | //if (!rXAllocColor (&xcol, "dark gray"))//TODO//D// |
178 | xcol.pixel = PixColors[Color_Grey25]; |
177 | xcol.pixel = pix_colors[Color_Grey25]; |
179 | dark = gcvalue.foreground = xcol.pixel; |
178 | dark = gcvalue.foreground = xcol.pixel; |
180 | darkGC = XCreateGC (display->display, scrollBar.win, |
179 | darkGC = XCreateGC (display->display, scrollBar.win, |
181 | GCForeground | GCGraphicsExposures, &gcvalue); |
180 | GCForeground | GCGraphicsExposures, &gcvalue); |
182 | |
181 | |
183 | stipple = XCreateBitmapFromData (display->display, scrollBar.win, |
182 | stipple = XCreateBitmapFromData (display->display, scrollBar.win, |
… | |
… | |
187 | gcvalue.foreground = dark; |
186 | gcvalue.foreground = dark; |
188 | gcvalue.background = light; |
187 | gcvalue.background = light; |
189 | gcvalue.fill_style = FillOpaqueStippled; |
188 | gcvalue.fill_style = FillOpaqueStippled; |
190 | gcvalue.stipple = stipple; |
189 | gcvalue.stipple = stipple; |
191 | |
190 | |
192 | /* XSetWindowBackground (display->display, scrollBar.win, PixColors[Color_Red]); */ |
191 | /* XSetWindowBackground (display->display, scrollBar.win, pix_colors[Color_Red]); */ |
193 | |
192 | |
194 | stippleGC = XCreateGC (display->display, scrollBar.win, |
193 | stippleGC = XCreateGC (display->display, scrollBar.win, |
195 | GCForeground | GCBackground | GCStipple |
194 | GCForeground | GCBackground | GCStipple |
196 | | GCFillStyle | GCGraphicsExposures, &gcvalue); |
195 | | GCFillStyle | GCGraphicsExposures, &gcvalue); |
197 | |
196 | |