diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-13 07:18:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-13 07:18:28 +0000 |
| commit | 5cf61ee02354c1c9f80c11f3796afc4b948055d6 (patch) | |
| tree | 5530ecca55e11cc74e57db07d750447c7107f8ed /render/theme.h | |
| parent | fb1696659672386bcfc0f753b67f9eeda74e93b9 (diff) | |
move the openbox engine into librender and the kernel. the theme is loaded and stored inside librender. the frame is decorated and managed inside the kernel.
Diffstat (limited to 'render/theme.h')
| -rw-r--r-- | render/theme.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/render/theme.h b/render/theme.h new file mode 100644 index 00000000..5d5bac10 --- /dev/null +++ b/render/theme.h @@ -0,0 +1,84 @@ +#ifndef __theme_h +#define __theme_h + +#include "render.h" +#include "color.h" +#include "font.h" +#include "mask.h" + +extern int theme_bevel; +extern int theme_handle_height; +extern int theme_bwidth; +extern int theme_cbwidth; + +#define theme_label_height (theme_winfont_height + 2) +#define theme_title_height (theme_label_height + theme_bevel * 2) +#define theme_button_size (theme_label_height - 2) +#define theme_grip_width (theme_button_size * 2) + +extern color_rgb *theme_b_color; +extern color_rgb *theme_cb_focused_color; +extern color_rgb *theme_cb_unfocused_color; +extern color_rgb *theme_title_focused_color; +extern color_rgb *theme_title_unfocused_color; +extern color_rgb *theme_titlebut_focused_color; +extern color_rgb *theme_titlebut_unfocused_color; + +extern int theme_winfont_height; +extern ObFont *theme_winfont; +extern char *theme_title_layout; + +extern pixmap_mask *theme_max_set_mask; +extern pixmap_mask *theme_max_unset_mask; +extern pixmap_mask *theme_iconify_mask; +extern pixmap_mask *theme_desk_set_mask; +extern pixmap_mask *theme_desk_unset_mask; +extern pixmap_mask *theme_shade_set_mask; +extern pixmap_mask *theme_shade_unset_mask; +extern pixmap_mask *theme_close_mask; + +extern Appearance *theme_a_focused_unpressed_max; +extern Appearance *theme_a_focused_pressed_max; +extern Appearance *theme_a_focused_pressed_set_max; +extern Appearance *theme_a_unfocused_unpressed_max; +extern Appearance *theme_a_unfocused_pressed_max; +extern Appearance *theme_a_unfocused_pressed_set_max; +extern Appearance *theme_a_focused_unpressed_close; +extern Appearance *theme_a_focused_pressed_close; +extern Appearance *theme_a_unfocused_unpressed_close; +extern Appearance *theme_a_unfocused_pressed_close; +extern Appearance *theme_a_focused_unpressed_desk; +extern Appearance *theme_a_focused_pressed_desk; +extern Appearance *theme_a_focused_pressed_set_desk; +extern Appearance *theme_a_unfocused_unpressed_desk; +extern Appearance *theme_a_unfocused_pressed_desk; +extern Appearance *theme_a_unfocused_pressed_set_desk; +extern Appearance *theme_a_focused_unpressed_shade; +extern Appearance *theme_a_focused_pressed_shade; +extern Appearance *theme_a_focused_pressed_set_shade; +extern Appearance *theme_a_unfocused_unpressed_shade; +extern Appearance *theme_a_unfocused_pressed_shade; +extern Appearance *theme_a_unfocused_pressed_set_shade; +extern Appearance *theme_a_focused_unpressed_iconify; +extern Appearance *theme_a_focused_pressed_iconify; +extern Appearance *theme_a_unfocused_unpressed_iconify; +extern Appearance *theme_a_unfocused_pressed_iconify; +extern Appearance *theme_a_focused_grip; +extern Appearance *theme_a_unfocused_grip; +extern Appearance *theme_a_focused_title; +extern Appearance *theme_a_unfocused_title; +extern Appearance *theme_a_focused_label; +extern Appearance *theme_a_unfocused_label; +extern Appearance *theme_a_icon; +extern Appearance *theme_a_focused_handle; +extern Appearance *theme_a_unfocused_handle; + +extern Appearance *theme_app_hilite_label; +extern Appearance *theme_app_unhilite_label; + +void theme_startup(); +void theme_shutdown(); + +char *theme_load(char *theme); + +#endif |
