Grayscale scroll bar background pattern for default theme. Issue #16

This commit is contained in:
Morgan Aldridge 2021-03-24 09:10:01 -04:00
parent 6984cda115
commit 1abad78a41

View File

@ -763,6 +763,7 @@ void DrawSbarBar( MlvwmWindow *t, int context, Bool on_off )
if( on_off ){
if( t->flags&SCROLL && size<0 ){
if( Scr.d_depth>1 ){
if( Scr.flags&SYSTEM8 ){
Pixmap bgpix;
bgpix = XCreatePixmap( dpy, Scr.Root, width_f,
@ -774,6 +775,18 @@ void DrawSbarBar( MlvwmWindow *t, int context, Bool on_off )
XSetWindowBackgroundPixmap( dpy, win, bgpix );
XFreePixmap( dpy, bgpix );
}
else{
XGCValues gcv_gray4, gcv_gray2;
XGetGCValues(dpy, Scr.Gray4GC, GCForeground, &gcv_gray4);
XGetGCValues(dpy, Scr.Gray2GC, GCForeground, &gcv_gray2);
XSetWindowBackgroundPixmap( dpy, win,
XCreatePixmapFromBitmapData( dpy, Scr.Root,
mesh, mesh_w, mesh_h,
gcv_gray2.foreground,
gcv_gray4.foreground,
Scr.d_depth ));
}
}
else{
XSetWindowBackgroundPixmap( dpy, win,
XCreatePixmapFromBitmapData( dpy, Scr.Root,