Blame


1 6ab857d5 2024-01-23 op /*
2 6ab857d5 2024-01-23 op * Copyright (c) 2021, 2024 Omar Polo <op@omarpolo.com>
3 6ab857d5 2024-01-23 op *
4 6ab857d5 2024-01-23 op * Permission to use, copy, modify, and distribute this software for any
5 6ab857d5 2024-01-23 op * purpose with or without fee is hereby granted, provided that the above
6 6ab857d5 2024-01-23 op * copyright notice and this permission notice appear in all copies.
7 6ab857d5 2024-01-23 op *
8 6ab857d5 2024-01-23 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 6ab857d5 2024-01-23 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 6ab857d5 2024-01-23 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 6ab857d5 2024-01-23 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 6ab857d5 2024-01-23 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 6ab857d5 2024-01-23 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 6ab857d5 2024-01-23 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 6ab857d5 2024-01-23 op */
16 6ab857d5 2024-01-23 op
17 6ab857d5 2024-01-23 op #ifndef DEFAULTS_H
18 6ab857d5 2024-01-23 op #define DEFAULTS_H
19 6ab857d5 2024-01-23 op
20 6ab857d5 2024-01-23 op extern char *default_protocol;
21 fd6c540b 2024-02-12 op extern char *default_search_engine;
22 6ab857d5 2024-01-23 op extern char *download_path;
23 6ab857d5 2024-01-23 op extern char *new_tab_url;
24 6ab857d5 2024-01-23 op
25 6ab857d5 2024-01-23 op extern int autosave;
26 6ab857d5 2024-01-23 op extern int dont_wrap_pre;
27 f350bc73 2024-05-27 thomas.ad extern int dont_apply_styling;
28 6ab857d5 2024-01-23 op extern int emojify_link;
29 6ab857d5 2024-01-23 op extern int enable_colors;
30 6ab857d5 2024-01-23 op extern int fill_column;
31 6ab857d5 2024-01-23 op extern int fringe_ignore_offset;
32 6ab857d5 2024-01-23 op extern int hide_pre_blocks;
33 6ab857d5 2024-01-23 op extern int hide_pre_closing_line;
34 6ab857d5 2024-01-23 op extern int hide_pre_context;
35 6ab857d5 2024-01-23 op extern int load_url_use_heuristic;
36 6ab857d5 2024-01-23 op extern int max_killed_tabs;
37 6ab857d5 2024-01-23 op extern int olivetti_mode;
38 6ab857d5 2024-01-23 op extern int set_title;
39 6ab857d5 2024-01-23 op extern int tab_bar_show;
40 6ab857d5 2024-01-23 op
41 6ab857d5 2024-01-23 op extern struct vline fringe;
42 6ab857d5 2024-01-23 op
43 6ab857d5 2024-01-23 op struct lineprefix {
44 6ab857d5 2024-01-23 op const char *prfx1;
45 6ab857d5 2024-01-23 op const char *prfx2;
46 6ab857d5 2024-01-23 op };
47 f350bc73 2024-05-27 thomas.ad
48 f350bc73 2024-05-27 thomas.ad extern struct lineprefix raw_prefixes[];
49 6ab857d5 2024-01-23 op extern struct lineprefix line_prefixes[];
50 6ab857d5 2024-01-23 op
51 6ab857d5 2024-01-23 op struct line_face {
52 6ab857d5 2024-01-23 op int prfx_pair, pair, trail_pair;
53 6ab857d5 2024-01-23 op int prfx_bg, bg, trail_bg;
54 6ab857d5 2024-01-23 op int prfx_fg, fg, trail_fg;
55 6ab857d5 2024-01-23 op int prfx_attr, attr, trail_attr;
56 6ab857d5 2024-01-23 op
57 6ab857d5 2024-01-23 op int prefix, text, trail;
58 6ab857d5 2024-01-23 op };
59 6ab857d5 2024-01-23 op extern struct line_face line_faces[];
60 6ab857d5 2024-01-23 op
61 6ab857d5 2024-01-23 op struct tab_face {
62 6ab857d5 2024-01-23 op int bg_attr, bg_bg, bg_fg;
63 6ab857d5 2024-01-23 op int t_attr, t_bg, t_fg;
64 6ab857d5 2024-01-23 op int c_attr, c_bg, c_fg;
65 6ab857d5 2024-01-23 op
66 6ab857d5 2024-01-23 op int background, tab, current;
67 6ab857d5 2024-01-23 op };
68 6ab857d5 2024-01-23 op extern struct tab_face tab_face;
69 6ab857d5 2024-01-23 op
70 6ab857d5 2024-01-23 op struct body_face {
71 6ab857d5 2024-01-23 op int lbg, lfg;
72 6ab857d5 2024-01-23 op int bg, fg;
73 6ab857d5 2024-01-23 op int rbg, rfg;
74 6ab857d5 2024-01-23 op
75 6ab857d5 2024-01-23 op int left, body, right;
76 6ab857d5 2024-01-23 op };
77 6ab857d5 2024-01-23 op extern struct body_face body_face;
78 6ab857d5 2024-01-23 op
79 6ab857d5 2024-01-23 op struct download_face {
80 6ab857d5 2024-01-23 op int bg, fg, attr;
81 6ab857d5 2024-01-23 op int background;
82 6ab857d5 2024-01-23 op };
83 6ab857d5 2024-01-23 op extern struct download_face download_face;
84 6ab857d5 2024-01-23 op
85 6ab857d5 2024-01-23 op struct modeline_face {
86 6ab857d5 2024-01-23 op int bg, fg, attr;
87 6ab857d5 2024-01-23 op int background;
88 6ab857d5 2024-01-23 op };
89 6ab857d5 2024-01-23 op extern struct modeline_face modeline_face;
90 6ab857d5 2024-01-23 op
91 6ab857d5 2024-01-23 op struct minibuffer_face {
92 6ab857d5 2024-01-23 op int bg, fg, attr;
93 6ab857d5 2024-01-23 op int background;
94 6ab857d5 2024-01-23 op };
95 6ab857d5 2024-01-23 op extern struct minibuffer_face minibuffer_face;
96 6ab857d5 2024-01-23 op
97 6ab857d5 2024-01-23 op void config_init(void);
98 6ab857d5 2024-01-23 op int config_setprfx(const char *, const char *, const char *);
99 6ab857d5 2024-01-23 op int config_setvari(const char *, int);
100 6ab857d5 2024-01-23 op int config_setvars(const char *, char *);
101 6ab857d5 2024-01-23 op int config_setvarb(const char *, int);
102 6ab857d5 2024-01-23 op int config_setcolor(int, const char *, int, int, int);
103 6ab857d5 2024-01-23 op int config_setattr(const char *, int, int, int);
104 6ab857d5 2024-01-23 op void config_apply_style(void);
105 6ab857d5 2024-01-23 op
106 6ab857d5 2024-01-23 op #endif