Change menu_headings to accept color and attribute

Instead of just accepting an attribute, it's now possible to
use a color, or both color and attribute, for example:

OPTIONS=menu_headings:inverse
OPTIONS=menu_headings:red
OPTIONS=menu_headings:red&underline

Default is still just inverse.
This lets the player change the menu heading color without
needing to use menu colors for them.

Also makes it so the core uses NO_COLOR instead of 0, for all
the menu lines which don't have any prefedefined color.

Tested for tty, curses, x11, qt, and win32
This commit is contained in:
Pasi Kallinen
2023-11-13 07:33:48 +02:00
parent dd6c249a8c
commit dd5ca5b058
47 changed files with 251 additions and 150 deletions

View File

@@ -4071,8 +4071,8 @@ Key to jump to the first page in a menu.
Default \(oq\(ha\(cq.
.lp menu_headings
Controls how the headings in a menu are highlighted.
Values are \(lqnone\(rq, \(lqbold\(rq, \(lqdim\(rq, \(lqitalic\(rq,
\(lqunderline\(rq, \(lqblink\(rq, or \(lqinverse\(rq.
Takes a text attribute, or text color and attribute separated by ampersand.
For allowed attributes and colors, see \(lqConfiguring Menu Colors\(rq.
Not all ports can actually display all types.
.lp menu_invert_all
Key to invert all items in a menu.