]> Dogcows Code - chaz/openbox/blob - render/theme.h
74f309e704bf38053075b52d839d89bcba682255
[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_focused_color;
34 RrColor *titlebut_unfocused_color;
35 RrColor *menu_title_color;
36 RrColor *menu_color;
37 RrColor *menu_disabled_color;
38 RrColor *menu_hilite_color;
39
40 /* style settings - fonts */
41 gint winfont_height;
42 RrFont *winfont;
43 gint mtitlefont_height;
44 RrFont *mtitlefont;
45 gint mfont_height;
46 RrFont *mfont;
47
48 /* style settings - title layout */
49 gchar *title_layout;
50
51 /* style settings - masks */
52 RrPixmapMask *max_set_mask;
53 RrPixmapMask *max_unset_mask;
54 RrPixmapMask *iconify_mask;
55 RrPixmapMask *desk_set_mask;
56 RrPixmapMask *desk_unset_mask;
57 RrPixmapMask *shade_set_mask;
58 RrPixmapMask *shade_unset_mask;
59 RrPixmapMask *close_mask;
60
61 /* global appearances */
62 RrAppearance *a_disabled_focused_max;
63 RrAppearance *a_disabled_unfocused_max;
64 RrAppearance *a_focused_unpressed_max;
65 RrAppearance *a_focused_pressed_max;
66 RrAppearance *a_focused_pressed_set_max;
67 RrAppearance *a_unfocused_unpressed_max;
68 RrAppearance *a_unfocused_pressed_max;
69 RrAppearance *a_unfocused_pressed_set_max;
70 RrAppearance *a_disabled_focused_close;
71 RrAppearance *a_disabled_unfocused_close;
72 RrAppearance *a_focused_unpressed_close;
73 RrAppearance *a_focused_pressed_close;
74 RrAppearance *a_unfocused_unpressed_close;
75 RrAppearance *a_unfocused_pressed_close;
76 RrAppearance *a_disabled_focused_desk;
77 RrAppearance *a_disabled_unfocused_desk;
78 RrAppearance *a_focused_unpressed_desk;
79 RrAppearance *a_focused_pressed_desk;
80 RrAppearance *a_focused_pressed_set_desk;
81 RrAppearance *a_unfocused_unpressed_desk;
82 RrAppearance *a_unfocused_pressed_desk;
83 RrAppearance *a_unfocused_pressed_set_desk;
84 RrAppearance *a_disabled_focused_shade;
85 RrAppearance *a_disabled_unfocused_shade;
86 RrAppearance *a_focused_unpressed_shade;
87 RrAppearance *a_focused_pressed_shade;
88 RrAppearance *a_focused_pressed_set_shade;
89 RrAppearance *a_unfocused_unpressed_shade;
90 RrAppearance *a_unfocused_pressed_shade;
91 RrAppearance *a_unfocused_pressed_set_shade;
92 RrAppearance *a_disabled_focused_iconify;
93 RrAppearance *a_disabled_unfocused_iconify;
94 RrAppearance *a_focused_unpressed_iconify;
95 RrAppearance *a_focused_pressed_iconify;
96 RrAppearance *a_unfocused_unpressed_iconify;
97 RrAppearance *a_unfocused_pressed_iconify;
98 RrAppearance *a_focused_grip;
99 RrAppearance *a_unfocused_grip;
100 RrAppearance *a_focused_title;
101 RrAppearance *a_unfocused_title;
102 RrAppearance *a_focused_label;
103 RrAppearance *a_unfocused_label;
104 /* always parentrelative, so no focused/unfocused */
105 RrAppearance *a_icon;
106 RrAppearance *a_focused_handle;
107 RrAppearance *a_unfocused_handle;
108 RrAppearance *a_menu_title;
109 RrAppearance *a_menu;
110 RrAppearance *a_menu_item;
111 RrAppearance *a_menu_disabled;
112 RrAppearance *a_menu_hilite;
113
114 RrAppearance *app_hilite_bg;
115 RrAppearance *app_unhilite_bg;
116 RrAppearance *app_hilite_label;
117 RrAppearance *app_unhilite_label;
118 RrAppearance *app_icon;
119 };
120
121 RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);
122 void RrThemeFree(RrTheme *theme);
123
124 #endif
This page took 0.046846 seconds and 4 git commands to generate.