From: Matthias Kruk Date: Tue, 18 May 2021 23:27:12 +0000 (+0900) Subject: theme: Add definitions for colors, palettes, and themes X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=f33c09aa1332d469cde42144b54436d7111d6a44;p=mwm theme: Add definitions for colors, palettes, and themes Common definitions for colors, palettes, and themes are necessary to make the style of mwm easily-customizable. This commit adds a set of style-related types. --- diff --git a/theme.h b/theme.h new file mode 100644 index 0000000..ef98864 --- /dev/null +++ b/theme.h @@ -0,0 +1,42 @@ +#ifndef MWM_THEME_H +#define MWM_THEME_H + +typedef enum { + MWM_PALETTE_ACTIVE = 0, + MWM_PALETTE_INACTIVE, + MWM_PALETTE_MAX +} mwm_palette_t; + +typedef enum { + MWM_COLOR_FOCUSED = 0, + MWM_COLOR_VISIBLE, + MWM_COLOR_TEXT, + MWM_COLOR_BACKGROUND, + MWM_COLOR_INDICATOR_FILL, + MWM_COLOR_INDICATOR_BORDER, + MWM_COLOR_CLIENT_INDICATOR, + MWM_COLOR_MAX +} mwm_color_t; + +union colorset { + struct { + const char *focused; + const char *visible; + const char *text; + const char *background; + const char *indicator_fill; + const char *indicator_border; + const char *client_indicator; + } named; + + const char *indexed[MWM_COLOR_MAX]; +}; + +struct theme { + union colorset active; + union colorset inactive; + + const char *statusbar_font; +}; + +#endif /* MWM_THEME_H */