mirror of
https://github.com/morgant/mlvwm.git
synced 2024-06-03 16:29:28 +00:00
Grayscale scroll bar background pattern for default theme. Issue #16
This commit is contained in:
parent
6984cda115
commit
1abad78a41
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user