]> Dogcows Code - chaz/openbox/blob - render/theme.h
make focus and unfocus fonts for window titles. change 'xftfont' to 'font' in the...
[chaz/openbox] / render / theme.h
1 #ifndef __theme_h
2 #define __theme_h
3
4 #include "render.h"
5
6 typedef struct _RrTheme RrTheme;
7
8 struct _RrTheme {
9 gchar *path;
10 gchar *name;
11
12 const RrInstance *inst;
13
14 /* style settings - geometry */
15 gint bevel;
16 gint handle_height;
17 gint bwidth;
18 gint cbwidth;
19 gint label_height;
20 gint title_height;
21 gint button_size;
22 gint grip_width;
23 gint menu_overlap;
24
25 /* style settings - colors */
26 RrColor *b_color;
27 RrColor *cb_focused_color;
28 RrColor *cb_unfocused_color;
29 RrColor *title_focused_color;
30 RrColor *title_unfocused_color;
31 RrColor *titlebut_disabled_focused_color;
32 RrColor *titlebut_disabled_unfocused_color;
33 RrColor *titlebut_hover_focused_color;
34 RrColor *titlebut_hover_unfocused_color;
35 RrColor *titlebut_toggled_focused_color;
36 RrColor *titlebut_toggled_unfocused_color;
37 RrColor *titlebut_focused_pressed_color;
38 RrColor *titlebut_unfocused_pressed_color;
39 RrColor *titlebut_focused_unpressed_color;
40 RrColor *titlebut_unfocused_unpressed_color;
41 RrColor *menu_title_color;
42 RrColor *menu_color;
43 RrColor *menu_bullet_color;
44 RrColor *menu_disabled_color;
45 RrColor *menu_hilite_color;
46
47 /* style settings - fonts */
48 gint winfont_height;
49 RrFont *winfont_focused;
50 RrFont *winfont_unfocused;
51 gint mtitlefont_height;
52 RrFont *mtitlefont;
53 gint mfont_height;
54 RrFont *mfont;
55
56 /* style settings - masks */
57 RrPixmapMask *max_mask;
58 RrPixmapMask *max_toggled_mask;
59 RrPixmapMask *max_hover_mask;
60 RrPixmapMask *max_disabled_mask;
61 RrPixmapMask *max_pressed_mask;
62 RrPixmapMask *iconify_mask;
63 RrPixmapMask *iconify_hover_mask;
64 RrPixmapMask *iconify_disabled_mask;
65 RrPixmapMask *iconify_pressed_mask;
66 RrPixmapMask *desk_mask;
67 RrPixmapMask *desk_toggled_mask;
68 RrPixmapMask *desk_hover_mask;
69 RrPixmapMask *desk_disabled_mask;
70 RrPixmapMask *desk_pressed_mask;
71 RrPixmapMask *shade_mask;
72 RrPixmapMask *shade_toggled_mask;
73 RrPixmapMask *shade_hover_mask;
74 RrPixmapMask *shade_disabled_mask;
75 RrPixmapMask *shade_pressed_mask;
76 RrPixmapMask *close_mask;
77 RrPixmapMask *close_hover_mask;
78 RrPixmapMask *close_disabled_mask;
79 RrPixmapMask *close_pressed_mask;
80
81 RrPixmapMask *menu_bullet_mask; /* submenu pointer */
82 RrPixmapMask *menu_toggle_mask; /* menu boolean */
83
84 /* global appearances */
85 RrAppearance *a_disabled_focused_max;
86 RrAppearance *a_disabled_unfocused_max;
87 RrAppearance *a_hover_focused_max;
88 RrAppearance *a_hover_unfocused_max;
89 RrAppearance *a_toggled_focused_max;
90 RrAppearance *a_toggled_unfocused_max;
91 RrAppearance *a_focused_unpressed_max;
92 RrAppearance *a_focused_pressed_max;
93 RrAppearance *a_unfocused_unpressed_max;
94 RrAppearance *a_unfocused_pressed_max;
95 RrAppearance *a_disabled_focused_close;
96 RrAppearance *a_disabled_unfocused_close;
97 RrAppearance *a_hover_focused_close;
98 RrAppearance *a_hover_unfocused_close;
99 RrAppearance *a_focused_unpressed_close;
100 RrAppearance *a_focused_pressed_close;
101 RrAppearance *a_unfocused_unpressed_close;
102 RrAppearance *a_unfocused_pressed_close;
103 RrAppearance *a_disabled_focused_desk;
104 RrAppearance *a_disabled_unfocused_desk;
105 RrAppearance *a_hover_focused_desk;
106 RrAppearance *a_hover_unfocused_desk;
107 RrAppearance *a_toggled_focused_desk;
108 RrAppearance *a_toggled_unfocused_desk;
109 RrAppearance *a_focused_unpressed_desk;
110 RrAppearance *a_focused_pressed_desk;
111 RrAppearance *a_unfocused_unpressed_desk;
112 RrAppearance *a_unfocused_pressed_desk;
113 RrAppearance *a_disabled_focused_shade;
114 RrAppearance *a_disabled_unfocused_shade;
115 RrAppearance *a_hover_focused_shade;
116 RrAppearance *a_hover_unfocused_shade;
117 RrAppearance *a_toggled_focused_shade;
118 RrAppearance *a_toggled_unfocused_shade;
119 RrAppearance *a_focused_unpressed_shade;
120 RrAppearance *a_focused_pressed_shade;
121 RrAppearance *a_unfocused_unpressed_shade;
122 RrAppearance *a_unfocused_pressed_shade;
123 RrAppearance *a_disabled_focused_iconify;
124 RrAppearance *a_disabled_unfocused_iconify;
125 RrAppearance *a_hover_focused_iconify;
126 RrAppearance *a_hover_unfocused_iconify;
127 RrAppearance *a_focused_unpressed_iconify;
128 RrAppearance *a_focused_pressed_iconify;
129 RrAppearance *a_unfocused_unpressed_iconify;
130 RrAppearance *a_unfocused_pressed_iconify;
131 RrAppearance *a_focused_grip;
132 RrAppearance *a_unfocused_grip;
133 RrAppearance *a_focused_title;
134 RrAppearance *a_unfocused_title;
135 RrAppearance *a_focused_label;
136 RrAppearance *a_unfocused_label;
137 /* always parentrelative, so no focused/unfocused */
138 RrAppearance *a_icon;
139 RrAppearance *a_focused_handle;
140 RrAppearance *a_unfocused_handle;
141 RrAppearance *a_menu_title;
142 RrAppearance *a_menu;
143 RrAppearance *a_menu_item;
144 RrAppearance *a_menu_disabled;
145 RrAppearance *a_menu_hilite;
146 RrAppearance *a_menu_bullet;
147 RrAppearance *a_clear;
148
149 RrAppearance *app_hilite_bg;
150 RrAppearance *app_unhilite_bg;
151 RrAppearance *app_hilite_label;
152 RrAppearance *app_unhilite_label;
153 RrAppearance *app_icon;
154
155 };
156
157 RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);
158 void RrThemeFree(RrTheme *theme);
159
160 #endif
This page took 0.039661 seconds and 4 git commands to generate.