TopBarMenu

TopBarSetColorSpec

Set the colors used to draw the top bar

Syntax

Signature
xBool       TopBarSetColorSpec( TopBarMenu *topBar, const char *colorSpec );

Arguments

topBar the top bar menu.

colorSpec a comma-separated color string to copy, or NULL to restore defaults based on the current SetColor() setting.

Return value

T on success, or F if the object is NULL.

Description

Entries 1 through 5 color the bar background and regular items, the current item, the accelerators of regular items, the accelerator of the current item, and disabled items, respectively. The bar draws a single row and retains the sixth slot for the shared menu color format.

With the initial `SetColor()` value, the default is `N/W,W/N,W+/W,W+/N,N+/W,W/N`. With a custom `SetColor()` value, the bar takes entries 5, 2, 4, 2, 1 and 3. A missing entry uses the first color.

See also