mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add theme.c to parse openbox's themerc
This commit is contained in:
parent
0ede4c61e6
commit
d40445da1d
10 changed files with 146 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "labwc.h"
|
||||
#include "rcxml.h"
|
||||
#include "theme.h"
|
||||
|
||||
static float window_active_title_bg[] = { 0.29, 0.55, 0.78, 1.0 };
|
||||
static float window_active_handle_bg[] = { 0.21, 0.49, 0.71, 1.0 };
|
||||
|
||||
struct draw_data {
|
||||
|
|
@ -54,7 +54,7 @@ static void render_decorations(struct wlr_output *output, struct view *view)
|
|||
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_BOTTOM));
|
||||
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_LEFT));
|
||||
|
||||
ddata.rgba = window_active_title_bg;
|
||||
ddata.rgba = theme.window_active_title_bg_color;
|
||||
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_TITLE));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue