Blob


1 /*
2 * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 *
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.
7 *
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.
15 */
17 #ifndef DEFAULTS_H
18 #define DEFAULTS_H
20 extern char *download_path;
21 extern char *new_tab_url;
23 extern int autosave;
24 extern int dont_wrap_pre;
25 extern int emojify_link;
26 extern int enable_colors;
27 extern int fill_column;
28 extern int hide_pre_blocks;
29 extern int hide_pre_closing_line;
30 extern int hide_pre_context;
31 extern int max_killed_tabs;
32 extern int olivetti_mode;
33 extern int set_title;
34 extern int tab_bar_show;
36 extern struct vline fringe;
38 struct lineprefix {
39 const char *prfx1;
40 const char *prfx2;
41 };
42 extern struct lineprefix line_prefixes[];
44 struct line_face {
45 int prfx_pair, pair, trail_pair;
46 int prfx_bg, bg, trail_bg;
47 int prfx_fg, fg, trail_fg;
48 int prfx_attr, attr, trail_attr;
50 int prefix, text, trail;
51 };
52 extern struct line_face line_faces[];
54 struct tab_face {
55 int bg_attr, bg_bg, bg_fg;
56 int t_attr, t_bg, t_fg;
57 int c_attr, c_bg, c_fg;
59 int background, tab, current;
60 };
61 extern struct tab_face tab_face;
63 struct body_face {
64 int lbg, lfg;
65 int bg, fg;
66 int rbg, rfg;
68 int left, body, right;
69 };
70 extern struct body_face body_face;
72 struct download_face {
73 int bg, fg, attr;
74 int background;
75 };
76 extern struct download_face download_face;
78 struct modeline_face {
79 int bg, fg, attr;
80 int background;
81 };
82 extern struct modeline_face modeline_face;
84 struct minibuffer_face {
85 int bg, fg, attr;
86 int background;
87 };
88 extern struct minibuffer_face minibuffer_face;
90 #endif