Blame


1 c92e529c 2021-06-15 op /*
2 c92e529c 2021-06-15 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 c92e529c 2021-06-15 op *
4 c92e529c 2021-06-15 op * Permission to use, copy, modify, and distribute this software for any
5 c92e529c 2021-06-15 op * purpose with or without fee is hereby granted, provided that the above
6 c92e529c 2021-06-15 op * copyright notice and this permission notice appear in all copies.
7 c92e529c 2021-06-15 op *
8 c92e529c 2021-06-15 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 c92e529c 2021-06-15 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 c92e529c 2021-06-15 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 c92e529c 2021-06-15 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 c92e529c 2021-06-15 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 c92e529c 2021-06-15 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 c92e529c 2021-06-15 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 c92e529c 2021-06-15 op */
16 c92e529c 2021-06-15 op
17 c92e529c 2021-06-15 op #include "telescope.h"
18 c92e529c 2021-06-15 op
19 c92e529c 2021-06-15 op #include <curses.h>
20 c92e529c 2021-06-15 op
21 c92e529c 2021-06-15 op struct lineprefix line_prefixes[] = {
22 c92e529c 2021-06-15 op [LINE_TEXT] = { "", "" },
23 c92e529c 2021-06-15 op [LINE_LINK] = { "=> ", " " },
24 c92e529c 2021-06-15 op [LINE_TITLE_1] = { "# ", " " },
25 c92e529c 2021-06-15 op [LINE_TITLE_2] = { "## ", " " },
26 c92e529c 2021-06-15 op [LINE_TITLE_3] = { "### ", " " },
27 c92e529c 2021-06-15 op [LINE_ITEM] = { "* ", " " },
28 c92e529c 2021-06-15 op [LINE_QUOTE] = { "> ", " " },
29 c92e529c 2021-06-15 op [LINE_PRE_START] = { "```", " " },
30 c92e529c 2021-06-15 op [LINE_PRE_CONTENT] = { "", "" },
31 c92e529c 2021-06-15 op [LINE_PRE_END] = { "```", "```" },
32 c92e529c 2021-06-15 op };
33 c92e529c 2021-06-15 op
34 c92e529c 2021-06-15 op struct line_face line_faces[] = {
35 c92e529c 2021-06-15 op [LINE_TEXT] = { 0, 0 },
36 c92e529c 2021-06-15 op [LINE_LINK] = { 0, A_UNDERLINE },
37 c92e529c 2021-06-15 op [LINE_TITLE_1] = { A_BOLD, A_BOLD },
38 c92e529c 2021-06-15 op [LINE_TITLE_2] = { A_BOLD, A_BOLD },
39 c92e529c 2021-06-15 op [LINE_TITLE_3] = { A_BOLD, A_BOLD },
40 c92e529c 2021-06-15 op [LINE_ITEM] = { 0, 0 },
41 c92e529c 2021-06-15 op [LINE_QUOTE] = { 0, A_DIM },
42 c92e529c 2021-06-15 op [LINE_PRE_START] = { 0, 0 },
43 c92e529c 2021-06-15 op [LINE_PRE_CONTENT] = { 0, 0 },
44 c92e529c 2021-06-15 op [LINE_PRE_END] = { 0, 0 },
45 c92e529c 2021-06-15 op };
46 c92e529c 2021-06-15 op
47 c92e529c 2021-06-15 op struct tab_face tab_face = {
48 c92e529c 2021-06-15 op .background = A_REVERSE,
49 c92e529c 2021-06-15 op .tab = A_REVERSE,
50 c92e529c 2021-06-15 op .current_tab = A_NORMAL,
51 c92e529c 2021-06-15 op };