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