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 #ifndef XNEDIT_COLORPROFILE_H
31 #define XNEDIT_COLORPROFILE_H
32
33 #include <X11/Xft/Xft.h>
34 #include <X11/Intrinsic.h>
35 #include <X11/Xlib.h>
36
37 typedef struct {
38 char *name;
39 char *color;
40 char *bgColor;
41 int font;
42 } highlightStyleRec;
43
44 typedef struct _ColorProfile {
45 char *name;
46
47 char *textFg;
48 char *textBg;
49 char *selectFg;
50 char *selectBg;
51 char *hiliteFg;
52 char *hiliteBg;
53 char *lineNoFg;
54 char *lineNoBg;
55 char *cursorFg;
56 char *lineHiBg;
57 char *ansiColorList;
58 char *rainbowColorList;
59
60 Boolean colorsLoaded;
61 Boolean stylesLoaded;
62 Boolean resDBLoaded;
63
64 XftColor textFgColor;
65 XftColor textBgColor;
66 XftColor selectFgColor;
67 XftColor selectBgColor;
68 XftColor hiliteFgColor;
69 XftColor hiliteBgColor;
70 XftColor lineNoFgColor;
71 XftColor lineNoBgColor;
72 XftColor cursorFgColor;
73 XftColor lineHiBgColor;
74
75 XftColor *ansiColors;
76 size_t numAnsiColors;
77 XftColor *rainbowColors;
78 size_t numRainbowColors;
79
80 int styleType;
81
82
83 highlightStyleRec **styles;
84 size_t numStyles;
85 size_t stylesAlloc;
86
87 char *resourceFile;
88 int windowThemeVariant;
89 XrmDatabase db;
90
91 Boolean modified;
92 Boolean removed;
93 struct _ColorProfile *orig;
94
95 struct _ColorProfile *next;
96 } ColorProfile;
97
98 #endif
99