]> Dogcows Code - chaz/openbox/blob - render/theme.h
add copyright headers, adjust --version output to include copyright, and --help outpu...
[chaz/openbox] / render / theme.h
1 /* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
2
3 theme.h for the Openbox window manager
4 Copyright (c) 2003 Ben Jansens
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 See the COPYING file for a copy of the GNU General Public License.
17 */
18
19 #ifndef __theme_h
20 #define __theme_h
21
22 #include "render.h"
23
24 typedef struct _RrTheme RrTheme;
25
26 struct _RrTheme {
27 gchar *path;
28 gchar *name;
29
30 const RrInstance *inst;
31
32 /* style settings - optional decor */
33 gboolean show_handle;
34
35 /* style settings - geometry */
36 gint padding;
37 gint handle_height;
38 gint bwidth;
39 gint cbwidth;
40 gint label_height;
41 gint title_height;
42 gint menu_title_height;
43 gint button_size;
44 gint grip_width;
45 gint menu_overlap;
46
47 /* style settings - colors */
48 RrColor *b_color;
49 RrColor *cb_focused_color;
50 RrColor *cb_unfocused_color;
51 RrColor *title_focused_color;
52 RrColor *title_unfocused_color;
53 RrColor *titlebut_disabled_focused_color;
54 RrColor *titlebut_disabled_unfocused_color;
55 RrColor *titlebut_hover_focused_color;
56 RrColor *titlebut_hover_unfocused_color;
57 RrColor *titlebut_toggled_focused_color;
58 RrColor *titlebut_toggled_unfocused_color;
59 RrColor *titlebut_focused_pressed_color;
60 RrColor *titlebut_unfocused_pressed_color;
61 RrColor *titlebut_focused_unpressed_color;
62 RrColor *titlebut_unfocused_unpressed_color;
63 RrColor *menu_title_color;
64 RrColor *menu_color;
65 RrColor *menu_disabled_color;
66 RrColor *menu_selected_color;
67
68 /* style settings - fonts */
69 gint win_font_height;
70 RrFont *win_font_focused;
71 RrFont *win_font_unfocused;
72 gint menu_title_font_height;
73 RrFont *menu_title_font;
74 gint menu_font_height;
75 RrFont *menu_font;
76
77 /* style settings - pics */
78 RrPixel32 *def_win_icon; /* 48x48 RGBA */
79
80 /* style settings - masks */
81 RrPixmapMask *max_mask;
82 RrPixmapMask *max_toggled_mask;
83 RrPixmapMask *max_hover_mask;
84 RrPixmapMask *max_disabled_mask;
85 RrPixmapMask *max_pressed_mask;
86 RrPixmapMask *iconify_mask;
87 RrPixmapMask *iconify_hover_mask;
88 RrPixmapMask *iconify_disabled_mask;
89 RrPixmapMask *iconify_pressed_mask;
90 RrPixmapMask *desk_mask;
91 RrPixmapMask *desk_toggled_mask;
92 RrPixmapMask *desk_hover_mask;
93 RrPixmapMask *desk_disabled_mask;
94 RrPixmapMask *desk_pressed_mask;
95 RrPixmapMask *shade_mask;
96 RrPixmapMask *shade_toggled_mask;
97 RrPixmapMask *shade_hover_mask;
98 RrPixmapMask *shade_disabled_mask;
99 RrPixmapMask *shade_pressed_mask;
100 RrPixmapMask *close_mask;
101 RrPixmapMask *close_hover_mask;
102 RrPixmapMask *close_disabled_mask;
103 RrPixmapMask *close_pressed_mask;
104
105 RrPixmapMask *menu_bullet_mask; /* submenu pointer */
106 RrPixmapMask *menu_toggle_mask; /* menu boolean */
107
108 /* global appearances */
109 RrAppearance *a_disabled_focused_max;
110 RrAppearance *a_disabled_unfocused_max;
111 RrAppearance *a_hover_focused_max;
112 RrAppearance *a_hover_unfocused_max;
113 RrAppearance *a_toggled_focused_max;
114 RrAppearance *a_toggled_unfocused_max;
115 RrAppearance *a_focused_unpressed_max;
116 RrAppearance *a_focused_pressed_max;
117 RrAppearance *a_unfocused_unpressed_max;
118 RrAppearance *a_unfocused_pressed_max;
119 RrAppearance *a_disabled_focused_close;
120 RrAppearance *a_disabled_unfocused_close;
121 RrAppearance *a_hover_focused_close;
122 RrAppearance *a_hover_unfocused_close;
123 RrAppearance *a_focused_unpressed_close;
124 RrAppearance *a_focused_pressed_close;
125 RrAppearance *a_unfocused_unpressed_close;
126 RrAppearance *a_unfocused_pressed_close;
127 RrAppearance *a_disabled_focused_desk;
128 RrAppearance *a_disabled_unfocused_desk;
129 RrAppearance *a_hover_focused_desk;
130 RrAppearance *a_hover_unfocused_desk;
131 RrAppearance *a_toggled_focused_desk;
132 RrAppearance *a_toggled_unfocused_desk;
133 RrAppearance *a_focused_unpressed_desk;
134 RrAppearance *a_focused_pressed_desk;
135 RrAppearance *a_unfocused_unpressed_desk;
136 RrAppearance *a_unfocused_pressed_desk;
137 RrAppearance *a_disabled_focused_shade;
138 RrAppearance *a_disabled_unfocused_shade;
139 RrAppearance *a_hover_focused_shade;
140 RrAppearance *a_hover_unfocused_shade;
141 RrAppearance *a_toggled_focused_shade;
142 RrAppearance *a_toggled_unfocused_shade;
143 RrAppearance *a_focused_unpressed_shade;
144 RrAppearance *a_focused_pressed_shade;
145 RrAppearance *a_unfocused_unpressed_shade;
146 RrAppearance *a_unfocused_pressed_shade;
147 RrAppearance *a_disabled_focused_iconify;
148 RrAppearance *a_disabled_unfocused_iconify;
149 RrAppearance *a_hover_focused_iconify;
150 RrAppearance *a_hover_unfocused_iconify;
151 RrAppearance *a_focused_unpressed_iconify;
152 RrAppearance *a_focused_pressed_iconify;
153 RrAppearance *a_unfocused_unpressed_iconify;
154 RrAppearance *a_unfocused_pressed_iconify;
155 RrAppearance *a_focused_grip;
156 RrAppearance *a_unfocused_grip;
157 RrAppearance *a_focused_title;
158 RrAppearance *a_unfocused_title;
159 RrAppearance *a_focused_label;
160 RrAppearance *a_unfocused_label;
161 /* always parentrelative, so no focused/unfocused */
162 RrAppearance *a_icon;
163 RrAppearance *a_focused_handle;
164 RrAppearance *a_unfocused_handle;
165 RrAppearance *a_menu_title;
166 RrAppearance *a_menu;
167 RrAppearance *a_menu_normal;
168 RrAppearance *a_menu_disabled;
169 RrAppearance *a_menu_selected;
170 RrAppearance *a_menu_text_normal;
171 RrAppearance *a_menu_text_disabled;
172 RrAppearance *a_menu_text_selected;
173 RrAppearance *a_menu_bullet_normal;
174 RrAppearance *a_menu_bullet_selected;
175 RrAppearance *a_clear; /* clear with no texture */
176 RrAppearance *a_clear_tex; /* clear with a texture */
177
178 RrAppearance *app_hilite_bg;
179 RrAppearance *app_unhilite_bg;
180 RrAppearance *app_hilite_fg; /* never parent relative */
181 RrAppearance *app_unhilite_fg; /* never parent relative */
182 RrAppearance *app_hilite_label; /* can be parent relative */
183 RrAppearance *app_unhilite_label; /* can be parent relative */
184
185 };
186
187 RrTheme* RrThemeNew(const RrInstance *inst, gchar *theme);
188 void RrThemeFree(RrTheme *theme);
189
190 #endif
This page took 0.04578 seconds and 5 git commands to generate.