2 * Copyright (c) 2021, 2024 Omar Polo <op@omarpolo.com>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 extern char *default_protocol;
21 extern char *default_search_engine;
22 extern char *download_path;
23 extern char *new_tab_url;
26 extern int dont_wrap_pre;
27 extern int dont_apply_styling;
28 extern int emojify_link;
29 extern int enable_colors;
30 extern int fill_column;
31 extern int fringe_ignore_offset;
32 extern int hide_pre_blocks;
33 extern int hide_pre_closing_line;
34 extern int hide_pre_context;
35 extern int load_url_use_heuristic;
36 extern int max_killed_tabs;
37 extern int olivetti_mode;
39 extern int tab_bar_show;
41 extern struct vline fringe;
48 extern struct lineprefix raw_prefixes[];
49 extern struct lineprefix line_prefixes[];
52 int prfx_pair, pair, trail_pair;
53 int prfx_bg, bg, trail_bg;
54 int prfx_fg, fg, trail_fg;
55 int prfx_attr, attr, trail_attr;
57 int prefix, text, trail;
59 extern struct line_face line_faces[];
62 int bg_attr, bg_bg, bg_fg;
63 int t_attr, t_bg, t_fg;
64 int c_attr, c_bg, c_fg;
66 int background, tab, current;
68 extern struct tab_face tab_face;
75 int left, body, right;
77 extern struct body_face body_face;
79 struct download_face {
83 extern struct download_face download_face;
85 struct modeline_face {
89 extern struct modeline_face modeline_face;
91 struct minibuffer_face {
95 extern struct minibuffer_face minibuffer_face;
97 void config_init(void);
98 int config_setprfx(const char *, const char *, const char *);
99 int config_setvari(const char *, int);
100 int config_setvars(const char *, char *);
101 int config_setvarb(const char *, int);
102 int config_setcolor(int, const char *, int, int, int);
103 int config_setattr(const char *, int, int, int);
104 void config_apply_style(void);