6 typedef struct _RrTheme RrTheme
;
12 const RrInstance
*inst
;
14 /* style settings - optional decor */
17 /* style settings - geometry */
28 /* style settings - colors */
30 RrColor
*cb_focused_color
;
31 RrColor
*cb_unfocused_color
;
32 RrColor
*title_focused_color
;
33 RrColor
*title_unfocused_color
;
34 RrColor
*titlebut_disabled_focused_color
;
35 RrColor
*titlebut_disabled_unfocused_color
;
36 RrColor
*titlebut_hover_focused_color
;
37 RrColor
*titlebut_hover_unfocused_color
;
38 RrColor
*titlebut_toggled_focused_color
;
39 RrColor
*titlebut_toggled_unfocused_color
;
40 RrColor
*titlebut_focused_pressed_color
;
41 RrColor
*titlebut_unfocused_pressed_color
;
42 RrColor
*titlebut_focused_unpressed_color
;
43 RrColor
*titlebut_unfocused_unpressed_color
;
44 RrColor
*menu_title_color
;
46 RrColor
*menu_bullet_normal_color
;
47 RrColor
*menu_bullet_selected_color
;
48 RrColor
*menu_disabled_color
;
49 RrColor
*menu_selected_color
;
51 /* style settings - fonts */
53 RrFont
*winfont_focused
;
54 RrFont
*winfont_unfocused
;
55 gint mtitlefont_height
;
60 /* style settings - masks */
61 RrPixmapMask
*max_mask
;
62 RrPixmapMask
*max_toggled_mask
;
63 RrPixmapMask
*max_hover_mask
;
64 RrPixmapMask
*max_disabled_mask
;
65 RrPixmapMask
*max_pressed_mask
;
66 RrPixmapMask
*iconify_mask
;
67 RrPixmapMask
*iconify_hover_mask
;
68 RrPixmapMask
*iconify_disabled_mask
;
69 RrPixmapMask
*iconify_pressed_mask
;
70 RrPixmapMask
*desk_mask
;
71 RrPixmapMask
*desk_toggled_mask
;
72 RrPixmapMask
*desk_hover_mask
;
73 RrPixmapMask
*desk_disabled_mask
;
74 RrPixmapMask
*desk_pressed_mask
;
75 RrPixmapMask
*shade_mask
;
76 RrPixmapMask
*shade_toggled_mask
;
77 RrPixmapMask
*shade_hover_mask
;
78 RrPixmapMask
*shade_disabled_mask
;
79 RrPixmapMask
*shade_pressed_mask
;
80 RrPixmapMask
*close_mask
;
81 RrPixmapMask
*close_hover_mask
;
82 RrPixmapMask
*close_disabled_mask
;
83 RrPixmapMask
*close_pressed_mask
;
85 RrPixmapMask
*menu_bullet_mask
; /* submenu pointer */
86 RrPixmapMask
*menu_toggle_mask
; /* menu boolean */
88 /* global appearances */
89 RrAppearance
*a_disabled_focused_max
;
90 RrAppearance
*a_disabled_unfocused_max
;
91 RrAppearance
*a_hover_focused_max
;
92 RrAppearance
*a_hover_unfocused_max
;
93 RrAppearance
*a_toggled_focused_max
;
94 RrAppearance
*a_toggled_unfocused_max
;
95 RrAppearance
*a_focused_unpressed_max
;
96 RrAppearance
*a_focused_pressed_max
;
97 RrAppearance
*a_unfocused_unpressed_max
;
98 RrAppearance
*a_unfocused_pressed_max
;
99 RrAppearance
*a_disabled_focused_close
;
100 RrAppearance
*a_disabled_unfocused_close
;
101 RrAppearance
*a_hover_focused_close
;
102 RrAppearance
*a_hover_unfocused_close
;
103 RrAppearance
*a_focused_unpressed_close
;
104 RrAppearance
*a_focused_pressed_close
;
105 RrAppearance
*a_unfocused_unpressed_close
;
106 RrAppearance
*a_unfocused_pressed_close
;
107 RrAppearance
*a_disabled_focused_desk
;
108 RrAppearance
*a_disabled_unfocused_desk
;
109 RrAppearance
*a_hover_focused_desk
;
110 RrAppearance
*a_hover_unfocused_desk
;
111 RrAppearance
*a_toggled_focused_desk
;
112 RrAppearance
*a_toggled_unfocused_desk
;
113 RrAppearance
*a_focused_unpressed_desk
;
114 RrAppearance
*a_focused_pressed_desk
;
115 RrAppearance
*a_unfocused_unpressed_desk
;
116 RrAppearance
*a_unfocused_pressed_desk
;
117 RrAppearance
*a_disabled_focused_shade
;
118 RrAppearance
*a_disabled_unfocused_shade
;
119 RrAppearance
*a_hover_focused_shade
;
120 RrAppearance
*a_hover_unfocused_shade
;
121 RrAppearance
*a_toggled_focused_shade
;
122 RrAppearance
*a_toggled_unfocused_shade
;
123 RrAppearance
*a_focused_unpressed_shade
;
124 RrAppearance
*a_focused_pressed_shade
;
125 RrAppearance
*a_unfocused_unpressed_shade
;
126 RrAppearance
*a_unfocused_pressed_shade
;
127 RrAppearance
*a_disabled_focused_iconify
;
128 RrAppearance
*a_disabled_unfocused_iconify
;
129 RrAppearance
*a_hover_focused_iconify
;
130 RrAppearance
*a_hover_unfocused_iconify
;
131 RrAppearance
*a_focused_unpressed_iconify
;
132 RrAppearance
*a_focused_pressed_iconify
;
133 RrAppearance
*a_unfocused_unpressed_iconify
;
134 RrAppearance
*a_unfocused_pressed_iconify
;
135 RrAppearance
*a_focused_grip
;
136 RrAppearance
*a_unfocused_grip
;
137 RrAppearance
*a_focused_title
;
138 RrAppearance
*a_unfocused_title
;
139 RrAppearance
*a_focused_label
;
140 RrAppearance
*a_unfocused_label
;
141 /* always parentrelative, so no focused/unfocused */
142 RrAppearance
*a_icon
;
143 RrAppearance
*a_focused_handle
;
144 RrAppearance
*a_unfocused_handle
;
145 RrAppearance
*a_menu_title
;
146 RrAppearance
*a_menu
;
147 RrAppearance
*a_menu_normal
;
148 RrAppearance
*a_menu_disabled
;
149 RrAppearance
*a_menu_selected
;
150 RrAppearance
*a_menu_text_normal
;
151 RrAppearance
*a_menu_text_disabled
;
152 RrAppearance
*a_menu_text_selected
;
153 RrAppearance
*a_menu_bullet_normal
;
154 RrAppearance
*a_menu_bullet_selected
;
155 RrAppearance
*a_clear
; /* clear with no texture */
156 RrAppearance
*a_clear_tex
; /* clear with a texture */
158 RrAppearance
*app_hilite_bg
;
159 RrAppearance
*app_unhilite_bg
;
160 RrAppearance
*app_hilite_label
;
161 RrAppearance
*app_unhilite_label
;
165 RrTheme
*RrThemeNew(const RrInstance
*inst
, gchar
*theme
);
166 void RrThemeFree(RrTheme
*theme
);