mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Rename struct active_link_options field color to enable_color.
It matches the corresponding option name better.
This commit is contained in:
parent
24605c967e
commit
8df72685ce
@ -231,7 +231,7 @@ update_cached_document_options(struct session *ses)
|
||||
memset(&active_link, 0, sizeof(active_link)); /* Safer. */
|
||||
active_link.fg = get_opt_color("document.browse.links.active_link.colors.text", ses);
|
||||
active_link.bg = get_opt_color("document.browse.links.active_link.colors.background", ses);
|
||||
active_link.color = get_opt_bool("document.browse.links.active_link.enable_color", ses);
|
||||
active_link.enable_color = get_opt_bool("document.browse.links.active_link.enable_color", ses);
|
||||
active_link.invert = get_opt_bool("document.browse.links.active_link.invert", ses);
|
||||
active_link.underline = get_opt_bool("document.browse.links.active_link.underline", ses);
|
||||
active_link.bold = get_opt_bool("document.browse.links.active_link.bold", ses);
|
||||
|
@ -68,7 +68,7 @@ init_document_options(struct session *ses, struct document_options *doo)
|
||||
doo->use_tabindex = get_opt_bool("document.browse.links.use_tabindex", ses);
|
||||
doo->links_numbering = get_opt_bool("document.browse.links.numbering", ses);
|
||||
|
||||
doo->active_link.color = get_opt_bool("document.browse.links.active_link.enable_color", ses);
|
||||
doo->active_link.enable_color = get_opt_bool("document.browse.links.active_link.enable_color", ses);
|
||||
doo->active_link.invert = get_opt_bool("document.browse.links.active_link.invert", ses);
|
||||
doo->active_link.underline = get_opt_bool("document.browse.links.active_link.underline", ses);
|
||||
doo->active_link.bold = get_opt_bool("document.browse.links.active_link.bold", ses);
|
||||
|
@ -10,7 +10,7 @@ struct session;
|
||||
|
||||
/** Active link coloring options */
|
||||
struct active_link_options {
|
||||
unsigned int color:1;
|
||||
unsigned int enable_color:1;
|
||||
unsigned int underline:1;
|
||||
unsigned int bold:1;
|
||||
unsigned int invert:1;
|
||||
|
@ -186,7 +186,7 @@ init_link_drawing(struct document_view *doc_view, struct link *link, int invert)
|
||||
if (doc_opts->active_link.bold)
|
||||
template.attr |= SCREEN_ATTR_BOLD;
|
||||
|
||||
if (doc_opts->active_link.color) {
|
||||
if (doc_opts->active_link.enable_color) {
|
||||
colors.foreground = doc_opts->active_link.fg;
|
||||
colors.background = doc_opts->active_link.bg;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user