all my changes while i was offline.
[mikachu/openbox.git] / render / theme.h
1 #ifndef __theme_h
2 #define __theme_h
3
4 #include "render.h"
5 #include "color.h"
6 #include "font.h"
7 #include "mask.h"
8
9 extern int theme_bevel;
10 extern int theme_handle_height;
11 extern int theme_bwidth;
12 extern int theme_cbwidth;
13
14 #define theme_label_height (theme_winfont_height + 2)
15 #define theme_title_height (theme_label_height + theme_bevel * 2)
16 #define theme_button_size  (theme_label_height - 2)
17 #define theme_grip_width   (theme_button_size * 2)
18
19 extern color_rgb *theme_b_color;
20 extern color_rgb *theme_cb_focused_color;
21 extern color_rgb *theme_cb_unfocused_color;
22 extern color_rgb *theme_title_focused_color;
23 extern color_rgb *theme_title_unfocused_color;
24 extern color_rgb *theme_titlebut_focused_color;
25 extern color_rgb *theme_titlebut_unfocused_color;
26
27 extern int theme_winfont_height;
28 extern ObFont *theme_winfont;
29 extern char *theme_title_layout;
30
31 extern pixmap_mask *theme_max_set_mask;
32 extern pixmap_mask *theme_max_unset_mask;
33 extern pixmap_mask *theme_iconify_mask;
34 extern pixmap_mask *theme_desk_set_mask;
35 extern pixmap_mask *theme_desk_unset_mask;
36 extern pixmap_mask *theme_shade_set_mask;
37 extern pixmap_mask *theme_shade_unset_mask;
38 extern pixmap_mask *theme_close_mask;
39
40 extern Appearance *theme_a_focused_unpressed_max;
41 extern Appearance *theme_a_focused_pressed_max;
42 extern Appearance *theme_a_focused_pressed_set_max;
43 extern Appearance *theme_a_unfocused_unpressed_max;
44 extern Appearance *theme_a_unfocused_pressed_max;
45 extern Appearance *theme_a_unfocused_pressed_set_max;
46 extern Appearance *theme_a_focused_unpressed_close;
47 extern Appearance *theme_a_focused_pressed_close;
48 extern Appearance *theme_a_unfocused_unpressed_close;
49 extern Appearance *theme_a_unfocused_pressed_close;
50 extern Appearance *theme_a_focused_unpressed_desk;
51 extern Appearance *theme_a_focused_pressed_desk;
52 extern Appearance *theme_a_focused_pressed_set_desk;
53 extern Appearance *theme_a_unfocused_unpressed_desk;
54 extern Appearance *theme_a_unfocused_pressed_desk;
55 extern Appearance *theme_a_unfocused_pressed_set_desk;
56 extern Appearance *theme_a_focused_unpressed_shade;
57 extern Appearance *theme_a_focused_pressed_shade;
58 extern Appearance *theme_a_focused_pressed_set_shade;
59 extern Appearance *theme_a_unfocused_unpressed_shade;
60 extern Appearance *theme_a_unfocused_pressed_shade;
61 extern Appearance *theme_a_unfocused_pressed_set_shade;
62 extern Appearance *theme_a_focused_unpressed_iconify;
63 extern Appearance *theme_a_focused_pressed_iconify;
64 extern Appearance *theme_a_unfocused_unpressed_iconify;
65 extern Appearance *theme_a_unfocused_pressed_iconify;
66 extern Appearance *theme_a_focused_grip;
67 extern Appearance *theme_a_unfocused_grip;
68 extern Appearance *theme_a_focused_title;
69 extern Appearance *theme_a_unfocused_title;
70 extern Appearance *theme_a_focused_label;
71 extern Appearance *theme_a_unfocused_label;
72 extern Appearance *theme_a_icon;
73 extern Appearance *theme_a_focused_handle;
74 extern Appearance *theme_a_unfocused_handle;
75 extern Appearance *theme_a_menu_title;
76 extern Appearance *theme_a_menu;
77 extern Appearance *theme_a_menu_item;
78 extern Appearance *theme_a_menu_disabled;
79 extern Appearance *theme_a_menu_hilite;
80
81 extern Appearance *theme_app_hilite_bg;
82 extern Appearance *theme_app_unhilite_bg;
83 extern Appearance *theme_app_hilite_label;
84 extern Appearance *theme_app_unhilite_label;
85 extern Appearance *theme_app_icon;
86
87 void theme_startup();
88 void theme_shutdown();
89
90 char *theme_load(char *theme);
91
92 #endif