1
1

color: use bright yellow to highlight a search match

Plain yellow is too dark (more like brown) on some machines.
Lightyellow is a bit loud, but... very visible.
Этот коммит содержится в:
Benno Schulenberg 2021-02-15 11:29:23 +01:00
родитель 1b01adfa9f
Коммит 282f438967
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -894,7 +894,7 @@ text. (The color of the stripe can be changed with @code{set stripecolor}.)
@item set highlightcolor [bold,][italic,]@var{fgcolor},@var{bgcolor} @item set highlightcolor [bold,][italic,]@var{fgcolor},@var{bgcolor}
Use this color combination for highlighting a search match. Use this color combination for highlighting a search match.
The default value is @t{black,yellow}. The default value is @t{black,lightyellow}.
@xref{@code{set functioncolor}} for valid color names. @xref{@code{set functioncolor}} for valid color names.
@item set historylog @item set historylog

Просмотреть файл

@ -148,7 +148,7 @@ text. (The color of the stripe can be changed with \fBset stripecolor\fR.)
.TP .TP
.B set highlightcolor \fR[\fBbold,\fR][\fBitalic,\fR]\fIfgcolor\fB,\fIbgcolor\fR .B set highlightcolor \fR[\fBbold,\fR][\fBitalic,\fR]\fIfgcolor\fB,\fIbgcolor\fR
Use this color combination for highlighting a search match. Use this color combination for highlighting a search match.
The default value is \fBblack,yellow\fR. The default value is \fBblack,lightyellow\fR.
See \fBset titlecolor\fR for valid color names. See \fBset titlecolor\fR for valid color names.
.TP .TP
.B set historylog .B set historylog

Просмотреть файл

@ -59,7 +59,7 @@ void set_interface_colorpairs(void)
else if (index == GUIDE_STRIPE) else if (index == GUIDE_STRIPE)
interface_color_pair[index] = A_REVERSE; interface_color_pair[index] = A_REVERSE;
else if (index == HIGHLIGHTED) { else if (index == HIGHLIGHTED) {
init_pair(index + 1, COLOR_BLACK, COLOR_YELLOW); init_pair(index + 1, COLOR_BLACK, COLOR_YELLOW + (COLORS > 15 ? 8 : 0));
interface_color_pair[index] = COLOR_PAIR(index + 1); interface_color_pair[index] = COLOR_PAIR(index + 1);
} else if (index == PROMPT_BAR) } else if (index == PROMPT_BAR)
interface_color_pair[index] = interface_color_pair[TITLE_BAR]; interface_color_pair[index] = interface_color_pair[TITLE_BAR];