Blame


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