diff options
author | nicm <nicm> | 2020-04-15 16:11:23 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-15 16:11:23 +0000 |
commit | 1e72f5ea4356a102e12c0b5325d4af824899d39c (patch) | |
tree | 34420459415756a4ca1127fa9064a8b32df53330 /menu.c | |
parent | c7883d5c872a56c5342092f81e87e0742713b4de (diff) | |
download | rtmux-1e72f5ea4356a102e12c0b5325d4af824899d39c.tar.gz rtmux-1e72f5ea4356a102e12c0b5325d4af824899d39c.tar.bz2 rtmux-1e72f5ea4356a102e12c0b5325d4af824899d39c.zip |
Use mode-style for selected items, like choose modes. GitHub issue 2166.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -149,10 +149,14 @@ menu_draw_cb(struct client *c, __unused struct screen_redraw_ctx *ctx0) struct menu *menu = md->menu; struct screen_write_ctx ctx; u_int i, px = md->px, py = md->py; + struct grid_cell gc; + + memcpy(&gc, &grid_default_cell, sizeof gc); + style_apply(&gc, c->session->curw->window->options, "mode-style"); screen_write_start(&ctx, NULL, s); screen_write_clearscreen(&ctx, 8); - screen_write_menu(&ctx, menu, md->choice); + screen_write_menu(&ctx, menu, md->choice, &gc); screen_write_stop(&ctx); for (i = 0; i < screen_size_y(&md->s); i++) |