X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.h;h=0e574d791985eeafa366c9ee3496eb5dafecdfc4;hb=de4f92ccc66c1dad1a2820a07d1f0161bd61a855;hp=a60d5cac431973f636f05a34fe727027c90fc439;hpb=b1f5555218ecaa3827450125dc47b4bf0d404ee4;p=chaz%2Fopenbox diff --git a/render/theme.h b/render/theme.h index a60d5cac..0e574d79 100644 --- a/render/theme.h +++ b/render/theme.h @@ -2,13 +2,11 @@ #define __theme_h #include "render.h" -#include "color.h" -#include "font.h" -#include "mask.h" typedef struct _RrTheme RrTheme; struct _RrTheme { + gchar *path; gchar *name; const RrInstance *inst; @@ -22,73 +20,110 @@ struct _RrTheme { gint title_height; gint button_size; gint grip_width; + gint menu_overlap; /* style settings - colors */ - color_rgb *b_color; - color_rgb *cb_focused_color; - color_rgb *cb_unfocused_color; - color_rgb *title_focused_color; - color_rgb *title_unfocused_color; - color_rgb *titlebut_focused_color; - color_rgb *titlebut_unfocused_color; - color_rgb *menu_title_color; - color_rgb *menu_color; - color_rgb *menu_disabled_color; - color_rgb *menu_hilite_color; + RrColor *b_color; + RrColor *cb_focused_color; + RrColor *cb_unfocused_color; + RrColor *title_focused_color; + RrColor *title_unfocused_color; + RrColor *titlebut_disabled_focused_color; + RrColor *titlebut_disabled_unfocused_color; + RrColor *titlebut_hover_focused_color; + RrColor *titlebut_hover_unfocused_color; + RrColor *titlebut_toggled_focused_color; + RrColor *titlebut_toggled_unfocused_color; + RrColor *titlebut_focused_pressed_color; + RrColor *titlebut_unfocused_pressed_color; + RrColor *titlebut_focused_unpressed_color; + RrColor *titlebut_unfocused_unpressed_color; + RrColor *menu_title_color; + RrColor *menu_color; + RrColor *menu_bullet_color; + RrColor *menu_disabled_color; + RrColor *menu_hilite_color; /* style settings - fonts */ gint winfont_height; - RrFont *winfont; - gboolean winfont_shadow; - gint winfont_shadow_offset; - gint winfont_shadow_tint; + RrFont *winfont_focused; + RrFont *winfont_unfocused; gint mtitlefont_height; RrFont *mtitlefont; - gboolean mtitlefont_shadow; - gint mtitlefont_shadow_offset; - gint mtitlefont_shadow_tint; gint mfont_height; RrFont *mfont; - gboolean mfont_shadow; - gint mfont_shadow_offset; - gint mfont_shadow_tint; - - /* style settings - title layout */ - gchar *title_layout; /* style settings - masks */ - RrPixmapMask *max_set_mask; - RrPixmapMask *max_unset_mask; + RrPixmapMask *max_mask; + RrPixmapMask *max_toggled_mask; + RrPixmapMask *max_hover_mask; + RrPixmapMask *max_disabled_mask; + RrPixmapMask *max_pressed_mask; RrPixmapMask *iconify_mask; - RrPixmapMask *desk_set_mask; - RrPixmapMask *desk_unset_mask; - RrPixmapMask *shade_set_mask; - RrPixmapMask *shade_unset_mask; + RrPixmapMask *iconify_hover_mask; + RrPixmapMask *iconify_disabled_mask; + RrPixmapMask *iconify_pressed_mask; + RrPixmapMask *desk_mask; + RrPixmapMask *desk_toggled_mask; + RrPixmapMask *desk_hover_mask; + RrPixmapMask *desk_disabled_mask; + RrPixmapMask *desk_pressed_mask; + RrPixmapMask *shade_mask; + RrPixmapMask *shade_toggled_mask; + RrPixmapMask *shade_hover_mask; + RrPixmapMask *shade_disabled_mask; + RrPixmapMask *shade_pressed_mask; RrPixmapMask *close_mask; + RrPixmapMask *close_hover_mask; + RrPixmapMask *close_disabled_mask; + RrPixmapMask *close_pressed_mask; + + RrPixmapMask *menu_bullet_mask; /* submenu pointer */ + RrPixmapMask *menu_toggle_mask; /* menu boolean */ /* global appearances */ + RrAppearance *a_disabled_focused_max; + RrAppearance *a_disabled_unfocused_max; + RrAppearance *a_hover_focused_max; + RrAppearance *a_hover_unfocused_max; + RrAppearance *a_toggled_focused_max; + RrAppearance *a_toggled_unfocused_max; RrAppearance *a_focused_unpressed_max; RrAppearance *a_focused_pressed_max; - RrAppearance *a_focused_pressed_set_max; RrAppearance *a_unfocused_unpressed_max; RrAppearance *a_unfocused_pressed_max; - RrAppearance *a_unfocused_pressed_set_max; + RrAppearance *a_disabled_focused_close; + RrAppearance *a_disabled_unfocused_close; + RrAppearance *a_hover_focused_close; + RrAppearance *a_hover_unfocused_close; RrAppearance *a_focused_unpressed_close; RrAppearance *a_focused_pressed_close; RrAppearance *a_unfocused_unpressed_close; RrAppearance *a_unfocused_pressed_close; + RrAppearance *a_disabled_focused_desk; + RrAppearance *a_disabled_unfocused_desk; + RrAppearance *a_hover_focused_desk; + RrAppearance *a_hover_unfocused_desk; + RrAppearance *a_toggled_focused_desk; + RrAppearance *a_toggled_unfocused_desk; RrAppearance *a_focused_unpressed_desk; RrAppearance *a_focused_pressed_desk; - RrAppearance *a_focused_pressed_set_desk; RrAppearance *a_unfocused_unpressed_desk; RrAppearance *a_unfocused_pressed_desk; - RrAppearance *a_unfocused_pressed_set_desk; + RrAppearance *a_disabled_focused_shade; + RrAppearance *a_disabled_unfocused_shade; + RrAppearance *a_hover_focused_shade; + RrAppearance *a_hover_unfocused_shade; + RrAppearance *a_toggled_focused_shade; + RrAppearance *a_toggled_unfocused_shade; RrAppearance *a_focused_unpressed_shade; RrAppearance *a_focused_pressed_shade; - RrAppearance *a_focused_pressed_set_shade; RrAppearance *a_unfocused_unpressed_shade; RrAppearance *a_unfocused_pressed_shade; - RrAppearance *a_unfocused_pressed_set_shade; + RrAppearance *a_disabled_focused_iconify; + RrAppearance *a_disabled_unfocused_iconify; + RrAppearance *a_hover_focused_iconify; + RrAppearance *a_hover_unfocused_iconify; RrAppearance *a_focused_unpressed_iconify; RrAppearance *a_focused_pressed_iconify; RrAppearance *a_unfocused_unpressed_iconify; @@ -108,12 +143,18 @@ struct _RrTheme { RrAppearance *a_menu_item; RrAppearance *a_menu_disabled; RrAppearance *a_menu_hilite; + RrAppearance *a_menu_text_item; + RrAppearance *a_menu_text_disabled; + RrAppearance *a_menu_text_hilite; + RrAppearance *a_menu_bullet; + RrAppearance *a_clear; /* clear with no texture */ + RrAppearance *a_clear_tex; /* clear with a texture */ RrAppearance *app_hilite_bg; RrAppearance *app_unhilite_bg; RrAppearance *app_hilite_label; RrAppearance *app_unhilite_label; - RrAppearance *app_icon; + }; RrTheme *RrThemeNew(const RrInstance *inst, gchar *theme);