|
@@ -25,6 +25,7 @@ config_theme(void)
|
|
|
sec = fetch_section_first(NULL, "themes");
|
|
|
ks = fetch_section(sec, "theme");
|
|
|
|
|
|
+ /* No theme section? Make one with default value anyway. */
|
|
|
if(!(n = fetch_section_count(ks)))
|
|
|
++n;
|
|
|
|
|
@@ -40,20 +41,30 @@ config_theme(void)
|
|
|
wmfs_init_font(fetch_opt_first(ks[i], "fixed", "font").str, t);
|
|
|
|
|
|
/* bars */
|
|
|
- t->bars.fg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "bars_fg").str);
|
|
|
- t->bars.bg = color_atoh(fetch_opt_first(ks[i], "#222222", "bars_bg").str);
|
|
|
+ t->bars.fg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "bars_fg").str);
|
|
|
+ t->bars.bg = color_atoh(fetch_opt_first(ks[i], "#222222", "bars_bg").str);
|
|
|
t->bars_width = fetch_opt_first(ks[i], "12", "bars_width").num;
|
|
|
|
|
|
/*
|
|
|
* Elements
|
|
|
*/
|
|
|
- t->tags_n.fg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "tags_normal_fg").str);
|
|
|
- t->tags_n.bg = color_atoh(fetch_opt_first(ks[i], "#222222", "tags_normal_bg").str);
|
|
|
- t->tags_s.fg = color_atoh(fetch_opt_first(ks[i], "#222222", "tags_sel_fg").str);
|
|
|
- t->tags_s.bg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "tags_sel_bg").str);
|
|
|
- t->tags_border_col = color_atoh(fetch_opt_first(ks[i], "#888888", "tags_border_color").str);
|
|
|
+ t->tags_n.fg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "tags_normal_fg").str);
|
|
|
+ t->tags_n.bg = color_atoh(fetch_opt_first(ks[i], "#222222", "tags_normal_bg").str);
|
|
|
+ t->tags_s.fg = color_atoh(fetch_opt_first(ks[i], "#222222", "tags_sel_fg").str);
|
|
|
+ t->tags_s.bg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "tags_sel_bg").str);
|
|
|
+ t->tags_border_col = color_atoh(fetch_opt_first(ks[i], "#888888", "tags_border_color").str);
|
|
|
t->tags_border_width = fetch_opt_first(ks[i], "0", "tags_border_width").num;
|
|
|
|
|
|
+ /* Client / Frame */
|
|
|
+ t->client_n.fg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "client_normal_fg").str);
|
|
|
+ t->client_n.bg = color_atoh(fetch_opt_first(ks[i], "#222222", "client_normal_bg").str);
|
|
|
+ t->client_s.fg = color_atoh(fetch_opt_first(ks[i], "#222222", "client_sel_fg").str);
|
|
|
+ t->client_s.bg = color_atoh(fetch_opt_first(ks[i], "#CCCCCC", "client_sel_bg").str);
|
|
|
+ t->frame_bg = color_atoh(fetch_opt_first(ks[i], "#555555", "frame_bg").str);
|
|
|
+ t->client_titlebar_width = fetch_opt_first(ks[i], "12", "client_titlebar_width").num;
|
|
|
+ t->client_border_width = fetch_opt_first(ks[i], "1", "client_border_width").num;
|
|
|
+
|
|
|
+
|
|
|
SLIST_INSERT_HEAD(&W->h.theme, t, next);
|
|
|
}
|
|
|
|