~strahinja/poe

ref: v1.4.2 poe/config.h -rw-r--r-- 2.6 KiB
955a2420Страхиња Радић Merge branch 'revert-to-1.4' 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* See the file LICENSE for copyright and license details. */

#define SAVE_WRAP_WIDTH 70
#define WRAP_FIRST_MSGSTR 0

#define DLG_FG				TB_BLACK
#define DLG_BG				TB_WHITE
#define EDIT_MSGID_FG			TB_BLACK | TB_BOLD
#define EDIT_MSGID_BG			TB_WHITE
#define EDIT_MSGID_FOCUS_FG		TB_BLACK
#define EDIT_MSGID_FOCUS_BG		TB_WHITE
#define EDIT_MSGID_HEADING_FG		TB_WHITE | TB_BOLD
#define EDIT_MSGID_HEADING_BG		TB_WHITE
#define EDIT_MSGSTR_FG			TB_BLACK | TB_BOLD
#define EDIT_MSGSTR_BG			TB_BLACK
#define EDIT_MSGSTR_FOCUS_FG		TB_YELLOW | TB_BOLD
#define EDIT_MSGSTR_FOCUS_BG		TB_BLACK
#define ERROR_FG			TB_WHITE | TB_BOLD
#define ERROR_BG			TB_RED
#define FLAG_FG				TB_YELLOW | TB_BOLD
#define FLAG_BG				TB_DEFAULT
#define LIST_FLAGS_FG			TB_YELLOW | TB_BOLD
#define LIST_FLAGS_BG			TB_DEFAULT
#define LIST_FLAGS_SEL_FG		TB_WHITE | TB_BOLD
#define LIST_FLAGS_SEL_BG		TB_BLUE
#define LIST_MSGID_FG			TB_WHITE
#define LIST_MSGID_BG			TB_DEFAULT
#define LIST_MSGID_SEL_FG		TB_WHITE
#define LIST_MSGID_SEL_BG		TB_BLUE
#define LIST_MSGID_SPECIAL_FG		TB_YELLOW | TB_BOLD
#define LIST_MSGID_SPECIAL_BG		TB_DEFAULT
#define LIST_MSGID_SPECIAL_SEL_FG	TB_WHITE | TB_BOLD
#define LIST_MSGID_SPECIAL_SEL_BG	TB_BLUE
#define LIST_MSGSTR_FG			TB_GREEN
#define LIST_MSGSTR_BG			TB_DEFAULT
#define LIST_MSGSTR_SEL_FG		TB_WHITE | TB_BOLD
#define LIST_MSGSTR_SEL_BG		TB_BLUE
#define LIST_SEL_FG			TB_WHITE
#define LIST_SEL_BG			TB_BLUE
#define MSGID_FG			TB_GREEN
#define MSGID_BG			TB_DEFAULT
#define MSGSTR_FG			TB_WHITE
#define MSGSTR_BG			TB_DEFAULT
#define PROMPT_FG			TB_YELLOW | TB_BOLD
#define PROMPT_BG			TB_MAGENTA
#define SEARCH_FG                       TB_BLACK
#define SEARCH_BG                       TB_WHITE
#define SEARCH_EDIT_FG                  TB_WHITE | TB_BOLD
#define SEARCH_EDIT_BG                  TB_BLACK
#define SEARCH_HL_FG                    TB_WHITE | TB_BOLD
#define SEARCH_HL_BG                    TB_GREEN
#define SHADOW_FG			TB_BLACK
#define SHADOW_BG			TB_BLACK | TB_BOLD
#define TITLE_FG			TB_BLACK
#define TITLE_BG			TB_WHITE

void format_filename(char* result, size_t result_size, const char* format,
		const struct DrawState* state);
void format_msgs(char* result, size_t result_size, const char* format,
		const struct DrawState* state);

static const struct StatusSegment status_segments[] = {
	{ .format = "%s%s",		.callback = format_filename, 
	  .fg = TB_BLACK,		.bg = TB_WHITE,	.alignment = LEFT },
	{ .format = "%ld/%ld (%ldu/%ldf/%ldo)",	
					.callback = format_msgs,
	  .fg = TB_WHITE | TB_BOLD,	.bg = TB_BLUE,	.alignment = CENTER },
	{ .format = "H=HELP, q=QUIT",	.callback = NULL,
	  .fg = TB_BLACK,		.bg = TB_WHITE,	.alignment = RIGHT },
};