Default colour as foreground colour
In the default colour setup (white on black), white could only with great difficulty be used as customized foreground colour, because the colour pair COLR_CUSTOM then was identical to COLR_DEFAULT (default on default). This made it impossible to distinguish the selected element in lists. The patch turns on the video attribute bold when default is chosen as foreground colour. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
95c5d576fa
commit
e733d09ea0
@@ -669,6 +669,12 @@ print_bool_option_incolor(WINDOW * win, unsigned option, int pos_y,
|
||||
EXIT(_("option not defined"));
|
||||
}
|
||||
|
||||
/*
|
||||
* Possibly nested custom_apply_attr() calls. Turn
|
||||
* custom_apply_attr(ATTR_HIGHEST) off explicitly,
|
||||
* while it may have other attributes besides the colour.
|
||||
*/
|
||||
custom_remove_attr(win, ATTR_HIGHEST);
|
||||
custom_apply_attr(win, color);
|
||||
mvwaddstr(win, pos_y, pos_x, option_value);
|
||||
custom_remove_attr(win, color);
|
||||
|
||||
Reference in New Issue
Block a user