… | |
… | |
164 | GCForeground | GCGraphicsExposures, &gcvalue); |
164 | GCForeground | GCGraphicsExposures, &gcvalue); |
165 | |
165 | |
166 | xcol.red = 0xaeba; |
166 | xcol.red = 0xaeba; |
167 | xcol.green = 0xaaaa; |
167 | xcol.green = 0xaaaa; |
168 | xcol.blue = 0xaeba; |
168 | xcol.blue = 0xaeba; |
169 | //if (!rXAllocColor (&xcol, "light gray"))//TODO//D// |
|
|
170 | xcol.pixel = pix_colors_focused[Color_AntiqueWhite]; |
169 | xcol.pixel = pix_colors_focused[Color_scroll]; |
171 | light = gcvalue.foreground = xcol.pixel; |
170 | light = gcvalue.foreground = xcol.pixel; |
172 | grayGC = XCreateGC (disp, scrollBar.win, |
171 | grayGC = XCreateGC (disp, scrollBar.win, |
173 | GCForeground | GCGraphicsExposures, &gcvalue); |
172 | GCForeground | GCGraphicsExposures, &gcvalue); |
174 | |
173 | |
175 | xcol.red = 0x51aa; |
174 | xcol.red = 0x51aa; |
… | |
… | |
241 | { |
240 | { |
242 | scrollBar.init |= R_SB_NEXT; |
241 | scrollBar.init |= R_SB_NEXT; |
243 | init_scrollbar_stuff (); |
242 | init_scrollbar_stuff (); |
244 | } |
243 | } |
245 | |
244 | |
246 | if (TermWin.nscrolled == 0 || !update) |
245 | if (nsaved == 0 || !update) |
247 | { |
246 | { |
248 | XFillRectangle (disp, scrollBar.win, grayGC, 0, 0, |
247 | XFillRectangle (disp, scrollBar.win, grayGC, 0, 0, |
249 | SB_WIDTH_NEXT + 1, height); |
248 | SB_WIDTH_NEXT + 1, height); |
250 | XDrawRectangle (disp, scrollBar.win, blackGC, 0, |
249 | XDrawRectangle (disp, scrollBar.win, blackGC, 0, |
251 | -SB_BORDER_WIDTH, SB_WIDTH_NEXT, |
250 | -SB_BORDER_WIDTH, SB_WIDTH_NEXT, |
252 | height + SB_BORDER_WIDTH); |
251 | height + SB_BORDER_WIDTH); |
253 | XFillRectangle (disp, scrollBar.win, stippleGC, |
252 | XFillRectangle (disp, scrollBar.win, stippleGC, |
254 | SB_LEFT_PADDING, 0, SB_BUTTON_WIDTH, height); |
253 | SB_LEFT_PADDING, 0, SB_BUTTON_WIDTH, height); |
255 | } |
254 | } |
256 | |
255 | |
257 | if (TermWin.nscrolled) |
256 | if (nsaved) |
258 | { |
257 | { |
259 | if (last_top < scrollBar.top || !update) |
258 | if (last_top < scrollBar.top || !update) |
260 | XFillRectangle (disp, scrollBar.win, stippleGC, |
259 | XFillRectangle (disp, scrollBar.win, stippleGC, |
261 | SB_LEFT_PADDING, SB_PADDING + last_top, |
260 | SB_LEFT_PADDING, SB_PADDING + last_top, |
262 | SB_BUTTON_WIDTH, scrollBar.top - last_top); |
261 | SB_BUTTON_WIDTH, scrollBar.top - last_top); |