From 6b9c484b787efaabf574a3f4217023aa87b5b5c4 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 20 Aug 2020 17:42:30 +0200 Subject: Refactoring and simplifying color configuration in config.h This involves always having configuration for floating border, regardless of whether it is used or not. Also permanently dropping the const expectation for color configuration in dwm, so that vtcolors and xrdb patches can change color configuration. --- drw.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drw.h') diff --git a/drw.h b/drw.h index 2408a5f..8630974 100644 --- a/drw.h +++ b/drw.h @@ -70,24 +70,14 @@ void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned in void drw_clr_create( Drw *drw, Clr *dest, - #if BAR_VTCOLORS_PATCH - const char clrname[] - #else const char *clrname - #endif // BAR_VTCOLORS_PATCH #if BAR_ALPHA_PATCH , unsigned int alpha #endif // BAR_ALPHA_PATCH ); Clr *drw_scm_create( Drw *drw, - #if BAR_VTCOLORS_PATCH - char clrnames[][8], - #elif XRDB_PATCH char *clrnames[], - #else - const char *clrnames[], - #endif // BAR_VTCOLORS_PATCH / XRDB_PATCH #if BAR_ALPHA_PATCH const unsigned int alphas[], #endif // BAR_ALPHA_PATCH -- cgit v1.2.3