~strahinja/poe

e8146eb35ef1e5411441366eeab5e4e2d7c44d66 — Страхиња Радић 4 months ago d6d6347 v1.4
Re-add config.h (for AUR)

Signed-off-by: Страхиња Радић <contact@strahinja.org>
2 files changed, 70 insertions(+), 1 deletions(-)

M .gitignore
A config.h
M .gitignore => .gitignore +0 -1
@@ 22,7 22,6 @@ src
PKGBUILD
poe
poe.1
config.h
date
version
version.h

A config.h => config.h +70 -0
@@ 0,0 1,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 },
};