mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
display_listbox_item(): clarify tests a bit.
This commit is contained in:
parent
4af4ac8a59
commit
9683cf429b
@ -361,11 +361,12 @@ display_listbox_item(struct listbox_item *item, void *data_, int *offset)
|
|||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
tree_color = get_bfu_color(data->term, "menu.normal");
|
tree_color = get_bfu_color(data->term, "menu.normal");
|
||||||
if (item == data->box->sel || item->marked) {
|
if (item == data->box->sel) {
|
||||||
unsigned char *name = (item == data->box->sel)
|
text_color = get_bfu_color(data->term, "menu.selected");
|
||||||
? "menu.selected" : "menu.marked";
|
|
||||||
|
} else if (item->marked) {
|
||||||
|
text_color = get_bfu_color(data->term, "menu.marked");
|
||||||
|
|
||||||
text_color = get_bfu_color(data->term, name);
|
|
||||||
} else {
|
} else {
|
||||||
text_color = tree_color;
|
text_color = tree_color;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user