make colors configurable
This commit is contained in:
		@ -8,6 +8,9 @@ static char *fontfallbacks[] = {
 | 
				
			|||||||
#define NUMFONTSCALES 30
 | 
					#define NUMFONTSCALES 30
 | 
				
			||||||
#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
 | 
					#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static const char *fgcol = "#000000";
 | 
				
			||||||
 | 
					static const char *bgcol = "#FFFFFF";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* how much screen estate is to be used at max for the content */
 | 
					/* how much screen estate is to be used at max for the content */
 | 
				
			||||||
static float usablewidth = 0.75;
 | 
					static float usablewidth = 0.75;
 | 
				
			||||||
static float usableheight = 0.75;
 | 
					static float usableheight = 0.75;
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								sent.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sent.c
									
									
									
									
									
								
							@ -522,7 +522,7 @@ void xinit()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if (!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h)))
 | 
						if (!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h)))
 | 
				
			||||||
		die("Can't create drawing context.");
 | 
							die("Can't create drawing context.");
 | 
				
			||||||
	sc = drw_scm_create(d, "#000000", "#FFFFFF");
 | 
						sc = drw_scm_create(d, fgcol, bgcol);
 | 
				
			||||||
	drw_setscheme(d, sc);
 | 
						drw_setscheme(d, sc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	xloadfonts();
 | 
						xloadfonts();
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user