window.active.title.bg.color: #589bda
+window.active.handle.bg.color: #3c7cb7
+
+window.inactive.title.bg.color: #efece6
struct theme {
float window_active_title_bg_color[4];
+ float window_active_handle_bg_color[4];
+ float window_inactive_title_bg_color[4];
};
extern struct theme theme;
#include "rcxml.h"
#include "theme.h"
-static float window_active_handle_bg[] = { 0.21, 0.49, 0.71, 1.0 };
-
struct draw_data {
struct wlr_renderer *renderer;
float *transform_matrix;
.transform_matrix = output->transform_matrix,
};
- ddata.rgba = window_active_handle_bg;
+ ddata.rgba = theme.window_active_handle_bg_color;
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_TOP));
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_RIGHT));
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_BOTTOM));
return;
if (!strcmp(key, "window.active.title.bg.color"))
parse_hexstr(value, theme.window_active_title_bg_color);
+ if (!strcmp(key, "window.active.handle.bg.color"))
+ parse_hexstr(value, theme.window_active_handle_bg_color);
+ if (!strcmp(key, "window.inactive.title.bg.color"))
+ parse_hexstr(value, theme.window_inactive_title_bg_color);
}
static void rtrim(char **s)