aboutsummaryrefslogtreecommitdiff
path: root/src/color.h
blob: 6e9ba601195fac3be549ccb0ab2354a8c63d6af3 (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
 * @file color.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Header for the color functions.
 *
 */

#ifndef COLOR_H
#define COLOR_H

typedef enum {

	COLOR_BORDER_BG,
	COLOR_BORDER_FG,
	COLOR_BORDER_ACTIVE_BG,
	COLOR_BORDER_ACTIVE_FG,

	COLOR_TRAY_BG,
	COLOR_TRAY_FG,

	COLOR_TASK_BG,
	COLOR_TASK_FG,
	COLOR_TASK_ACTIVE_BG,
	COLOR_TASK_ACTIVE_FG,

	COLOR_PAGER_BG,
	COLOR_PAGER_FG,
	COLOR_PAGER_ACTIVE_BG,
	COLOR_PAGER_ACTIVE_FG,
	COLOR_PAGER_OUTLINE,

	COLOR_MENU_BG,
	COLOR_MENU_FG,
	COLOR_MENU_ACTIVE_BG,
	COLOR_MENU_ACTIVE_FG,

	COLOR_BORDER_UP,
	COLOR_BORDER_DOWN,
	COLOR_BORDER_ACTIVE_UP,
	COLOR_BORDER_ACTIVE_DOWN,

	COLOR_TRAY_UP,
	COLOR_TRAY_DOWN,

	COLOR_TASK_UP,
	COLOR_TASK_DOWN,
	COLOR_TASK_ACTIVE_UP,
	COLOR_TASK_ACTIVE_DOWN,

	COLOR_MENU_UP,
	COLOR_MENU_DOWN,
	COLOR_MENU_ACTIVE_UP,
	COLOR_MENU_ACTIVE_DOWN,

	COLOR_POPUP_BG,
	COLOR_POPUP_FG,
	COLOR_POPUP_OUTLINE,

	COLOR_TRAYBUTTON_BG,
	COLOR_TRAYBUTTON_FG,

	COLOR_CLOCK_BG,
	COLOR_CLOCK_FG,

	COLOR_COUNT

} ColorType;

extern unsigned long colors[COLOR_COUNT];

/*@{*/
void InitializeColors();
void StartupColors();
void ShutdownColors();
void DestroyColors();
/*@}*/

void SetColor(ColorType c, const char *value);

void GetColor(XColor *c);
void GetColorIndex(XColor *c);
void GetColorFromIndex(XColor *c);

#ifdef USE_XFT
XftColor *GetXftColor(ColorType type);
#endif

#endif