more menu header tweaking re options
<color> off: map, menu items, menu headings, menu prompt/title all, everything should have color suppressed. <curses guicolor> on: map, menu items, menu headings, menu prompt/title can all feature color, as can menu borders, menu-selector letters. off: map, menu headings, menu prompt and menu items (menucolors on) can still feature color, but all other non-map features such as menu borders, menu-selector letters will not have color. <menucolors> on: menu items can have colors if they match one of the regex in config file; menu headings, menu prompt can also be in color (based on menu_headings option). off: menu items won't have colors, but menu headings, menu prompt still will feature colors (based on menu_headings option); those are not impacted by turning off menucolors.
This commit is contained in:
@@ -5071,10 +5071,12 @@ optfn_boolean(int optidx, int req, boolean negated, char *opts, char *op)
|
||||
#endif
|
||||
go.opt_need_redraw = TRUE;
|
||||
go.opt_need_glyph_reset = TRUE;
|
||||
go.opt_need_promptstyle = TRUE;
|
||||
break;
|
||||
case opt_menucolors:
|
||||
case opt_guicolor:
|
||||
update_inventory();
|
||||
go.opt_need_promptstyle = TRUE;
|
||||
break;
|
||||
case opt_mention_decor:
|
||||
iflags.prev_decor = STONE;
|
||||
@@ -8693,6 +8695,8 @@ doset_simple(void)
|
||||
docrt();
|
||||
flush_screen(1);
|
||||
}
|
||||
if (go.opt_need_promptstyle)
|
||||
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
|
||||
if (gc.context.botl || gc.context.botlx) {
|
||||
bot();
|
||||
}
|
||||
@@ -8943,6 +8947,9 @@ doset(void) /* changing options via menu by Per Liboriussen */
|
||||
reglyph_darkroom();
|
||||
docrt();
|
||||
}
|
||||
if (go.opt_need_promptstyle) {
|
||||
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
|
||||
}
|
||||
if (gc.context.botl || gc.context.botlx) {
|
||||
bot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user