aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: 6fe5857d69185e831772423e3a5a086306e1f3e1 (plain) (blame)
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
/* colitur-x -- compile-time configuration, suckless style.
 * Edit, `make`, done. There is no runtime config file by design. */

static const char *font       = "monospace:size=10";
static const char *font_big   = "monospace:size=14:bold";

/* Liturgical colours, as the engine names them -> what to paint. */
static const struct { const char *name, *bg, *fg; } palette[] = {
	{ "white",  "#f7f5ef", "#1a1a1a" },
	{ "red",    "#b03030", "#ffffff" },
	{ "violet", "#5a3a78", "#ffffff" },
	{ "green",  "#2f6b3a", "#ffffff" },
	{ "black",  "#202020", "#e0e0e0" },
	{ "rose",   "#d9a0b0", "#1a1a1a" },
};

static const char *col_bg     = "#141414";  /* window background   */
static const char *col_grid   = "#3a3a3a";  /* cell borders        */
static const char *col_head   = "#8a8a8a";  /* weekday headings    */
static const char *col_detail = "#e8e8e8";  /* detail pane text    */
/* The selected day is ringed TWICE: a dark ring outside a bright one, so
   the marker survives on a white cell and on a red one alike. A single
   bright ring vanishes against white; a single dark one vanishes against
   black. */
static const char *col_sel_dark  = "#1a1a1a";
static const char *col_sel_light = "#ffd24a";
enum { SEL_RING = 3 };                      /* px per ring */

/* A I-class day is marked with a BADGE, not coloured text: the badge is
   filled with the cell's own foreground and the glyph drawn in its
   background, so it inverts against whatever the day's colour is. Gold on
   white -- the first attempt -- was very nearly invisible. */
static const char *rank1_glyph = "I";

enum { CELL_W = 122, CELL_H = 74, PAD = 10, HEAD_H = 46, DETAIL_H = 92 };