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 f26f1205 2022-02-09 op extern char *download_path;
21 f26f1205 2022-02-09 op extern char *new_tab_url;
22 f26f1205 2022-02-09 op
23 f26f1205 2022-02-09 op extern int autosave;
24 f26f1205 2022-02-09 op extern int dont_wrap_pre;
25 f26f1205 2022-02-09 op extern int emojify_link;
26 f26f1205 2022-02-09 op extern int enable_colors;
27 f26f1205 2022-02-09 op extern int fill_column;
28 f26f1205 2022-02-09 op extern int fringe_ignore_offset;
29 f26f1205 2022-02-09 op extern int hide_pre_blocks;
30 f26f1205 2022-02-09 op extern int hide_pre_closing_line;
31 f26f1205 2022-02-09 op extern int hide_pre_context;
32 4bb6a4fa 2024-01-15 op extern int load_url_use_heuristic;
33 f26f1205 2022-02-09 op extern int max_killed_tabs;
34 f26f1205 2022-02-09 op extern int olivetti_mode;
35 f26f1205 2022-02-09 op extern int set_title;
36 f26f1205 2022-02-09 op extern int tab_bar_show;
37 f26f1205 2022-02-09 op
38 f26f1205 2022-02-09 op extern struct vline fringe;
39 f26f1205 2022-02-09 op
40 f26f1205 2022-02-09 op struct lineprefix {
41 f26f1205 2022-02-09 op const char *prfx1;
42 f26f1205 2022-02-09 op const char *prfx2;
43 f26f1205 2022-02-09 op };
44 f26f1205 2022-02-09 op extern struct lineprefix line_prefixes[];
45 f26f1205 2022-02-09 op
46 f26f1205 2022-02-09 op struct line_face {
47 f26f1205 2022-02-09 op int prfx_pair, pair, trail_pair;
48 f26f1205 2022-02-09 op int prfx_bg, bg, trail_bg;
49 f26f1205 2022-02-09 op int prfx_fg, fg, trail_fg;
50 f26f1205 2022-02-09 op int prfx_attr, attr, trail_attr;
51 f26f1205 2022-02-09 op
52 f26f1205 2022-02-09 op int prefix, text, trail;
53 f26f1205 2022-02-09 op };
54 f26f1205 2022-02-09 op extern struct line_face line_faces[];
55 f26f1205 2022-02-09 op
56 f26f1205 2022-02-09 op struct tab_face {
57 f26f1205 2022-02-09 op int bg_attr, bg_bg, bg_fg;
58 f26f1205 2022-02-09 op int t_attr, t_bg, t_fg;
59 f26f1205 2022-02-09 op int c_attr, c_bg, c_fg;
60 f26f1205 2022-02-09 op
61 f26f1205 2022-02-09 op int background, tab, current;
62 f26f1205 2022-02-09 op };
63 f26f1205 2022-02-09 op extern struct tab_face tab_face;
64 f26f1205 2022-02-09 op
65 f26f1205 2022-02-09 op struct body_face {
66 f26f1205 2022-02-09 op int lbg, lfg;
67 f26f1205 2022-02-09 op int bg, fg;
68 f26f1205 2022-02-09 op int rbg, rfg;
69 f26f1205 2022-02-09 op
70 f26f1205 2022-02-09 op int left, body, right;
71 f26f1205 2022-02-09 op };
72 f26f1205 2022-02-09 op extern struct body_face body_face;
73 f26f1205 2022-02-09 op
74 f26f1205 2022-02-09 op struct download_face {
75 f26f1205 2022-02-09 op int bg, fg, attr;
76 f26f1205 2022-02-09 op int background;
77 f26f1205 2022-02-09 op };
78 f26f1205 2022-02-09 op extern struct download_face download_face;
79 f26f1205 2022-02-09 op
80 f26f1205 2022-02-09 op struct modeline_face {
81 f26f1205 2022-02-09 op int bg, fg, attr;
82 f26f1205 2022-02-09 op int background;
83 f26f1205 2022-02-09 op };
84 f26f1205 2022-02-09 op extern struct modeline_face modeline_face;
85 f26f1205 2022-02-09 op
86 f26f1205 2022-02-09 op struct minibuffer_face {
87 f26f1205 2022-02-09 op int bg, fg, attr;
88 f26f1205 2022-02-09 op int background;
89 f26f1205 2022-02-09 op };
90 f26f1205 2022-02-09 op extern struct minibuffer_face minibuffer_face;
91 f26f1205 2022-02-09 op
92 2f51c5bd 2024-01-16 op void config_init(void);
93 2f51c5bd 2024-01-16 op int config_setprfx(const char *, const char *, const char *);
94 2f51c5bd 2024-01-16 op int config_setvari(const char *, int);
95 2f51c5bd 2024-01-16 op int config_setvars(const char *, char *);
96 2f51c5bd 2024-01-16 op int config_setcolor(int, const char *, int, int, int);
97 2f51c5bd 2024-01-16 op int config_setattr(const char *, int, int, int);
98 2f51c5bd 2024-01-16 op void config_apply_style(void);
99 2f51c5bd 2024-01-16 op
100 f26f1205 2022-02-09 op #endif