aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/foot.5.scd9
-rw-r--r--render.c6
2 files changed, 9 insertions, 6 deletions
diff --git a/doc/foot.5.scd b/doc/foot.5.scd
index f28a542a..4368d73d 100644
--- a/doc/foot.5.scd
+++ b/doc/foot.5.scd
@@ -151,13 +151,16 @@ component.
minimize/maximize/close buttons. Default: _26_.
*button-minimize-color*
- Minimize button's AARRGGBB color. Default: _ff1e90ff_.
+ Minimize button's AARRGGBB color. Default: use the default
+ _regular4_ color (blue).
*button-maximize-color*
- Maximize button's AARRGGBB color. Default: _ff30ff30_.
+ Maximize button's AARRGGBB color. Default: use the default
+ _regular2_ color (green).
*button-close-color*
- Close button's AARRGGBB color. Default: _ffff3030_.
+ Close button's AARRGGBB color. Default: use the default _regular1_
+ color (red).
# SECTION: key-bindings
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;