theme: add window_(in)active_label_text_color

Support both active and inactive colors for titlebar text
This commit is contained in:
Johan Malm 2021-10-15 21:35:41 +01:00
parent 606b6d946e
commit 597650b457
5 changed files with 37 additions and 9 deletions

View file

@ -236,7 +236,12 @@ struct view {
struct wl_list parts;
struct wlr_box box; /* remember geo so we know when to update */
} ssd;
struct wlr_texture *title;
/* The title is unique to each view, so we store these here */
struct {
struct wlr_texture *active;
struct wlr_texture *inactive;
} title;
struct wlr_foreign_toplevel_handle_v1 *toplevel_handle;
struct wl_listener toplevel_handle_request_maximize;

View file

@ -20,6 +20,9 @@ struct theme {
float window_active_title_bg_color[4];
float window_inactive_title_bg_color[4];
float window_active_label_text_color[4];
float window_inactive_label_text_color[4];
/* buttons */
float window_active_button_iconify_unpressed_image_color[4];
float window_active_button_max_unpressed_image_color[4];