aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:06:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:06:16 +0000
commit74d30dc41052ff3243feb68a9acbbbc627e6b401 (patch)
tree298c3a41f7a2a5dcb494d87dbbc1410435d17ce4 /render.c
parentchangelog: change -> changes (diff)
csd: buttons: use default color table as default colors
If the user hasn't configured any CSD button colors, use the color scheme's default colors for blue/green/red.
Diffstat (limited to 'render.c')
-rw-r--r--render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/render.c b/render.c
index ae10fce8..36d93be6 100644
--- a/render.c
+++ b/render.c
@@ -1108,21 +1108,21 @@ render_csd_button(struct terminal *term, enum csd_surface surf_idx)
switch (surf_idx) {
case CSD_SURF_MINIMIZE:
- _color = 0xff1e90ff;
+ _color = term->colors.default_table[4]; /* blue */
is_set = &term->conf->csd.color.minimize_set;
conf_color = &term->conf->csd.color.minimize;
is_active = term->active_surface == TERM_SURF_BUTTON_MINIMIZE;
break;
case CSD_SURF_MAXIMIZE:
- _color = 0xff30ff30;
+ _color = term->colors.default_table[2]; /* green */
is_set = &term->conf->csd.color.maximize_set;
conf_color = &term->conf->csd.color.maximize;
is_active = term->active_surface == TERM_SURF_BUTTON_MAXIMIZE;
break;
case CSD_SURF_CLOSE:
- _color = 0xffff3030;
+ _color = term->colors.default_table[1]; /* red */
is_set = &term->conf->csd.color.close_set;
conf_color = &term->conf->csd.color.close;
is_active = term->active_surface == TERM_SURF_BUTTON_CLOSE;