mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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;
|
||||
|
||||
tree_color = get_bfu_color(data->term, "menu.normal");
|
||||
if (item == data->box->sel || item->marked) {
|
||||
unsigned char *name = (item == data->box->sel)
|
||||
? "menu.selected" : "menu.marked";
|
||||
if (item == data->box->sel) {
|
||||
text_color = get_bfu_color(data->term, "menu.selected");
|
||||
|
||||
} else if (item->marked) {
|
||||
text_color = get_bfu_color(data->term, "menu.marked");
|
||||
|
||||
text_color = get_bfu_color(data->term, name);
|
||||
} else {
|
||||
text_color = tree_color;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user