comparison pidgin/gtkblist-theme.h @ 23484:06392c8252c0

Added text and font coloring for buddies, contacts and chats, as well as fix a few small bugs
author Justin Rodriguez <ffdragon@soc.pidgin.im>
date Thu, 31 Jul 2008 23:38:07 +0000
parents d17d6e83f428
children 9525fb966efb
comparison
equal deleted inserted replaced
23483:748308865dbf 23484:06392c8252c0
76 gint buddy_icon; 76 gint buddy_icon;
77 gboolean show_status; 77 gboolean show_status;
78 78
79 } PidginBlistLayout; 79 } PidginBlistLayout;
80 80
81 /**************************************************************************/
82 /** @name FontColorPair API */
83 /**************************************************************************/
84
85 /**
86 * Frees a font and color pair
87 */
88 void free_font_and_color(FontColorPair *pair);
81 89
82 /**************************************************************************/ 90 /**************************************************************************/
83 /** @name Purple Buddy List Theme API */ 91 /** @name Purple Buddy List Theme API */
84 /**************************************************************************/ 92 /**************************************************************************/
85 G_BEGIN_DECLS 93 G_BEGIN_DECLS
147 * @returns a font and color pair 155 * @returns a font and color pair
148 */ 156 */
149 FontColorPair *pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme); 157 FontColorPair *pidgin_blist_theme_get_collapsed_text_info(PidginBlistTheme *theme);
150 158
151 /** 159 /**
152 * Returns the 1st color to be used for buddys 160 * Returns the colors to be used for contacts and chats
153 * 161 *
154 * @returns a gdk color 162 * @returns a gdkcolor for contacts and chats
155 */ 163 */
156 GdkColor *pidgin_blist_theme_get_buddy_color_1(PidginBlistTheme *theme); 164 GdkColor *pidgin_blist_theme_get_contact_color(PidginBlistTheme *theme);
157 165
158 /** 166 /**
159 * Returns the 2nd color to be used for buddies 167 * Returns the text font and color to be used for expanded contacts
160 * 168 *
161 * @returns a gdk color 169 * @returns a font and color pair
162 */ 170 */
163 GdkColor *pidgin_blist_theme_get_buddy_color_2(PidginBlistTheme *theme); 171 FontColorPair *pidgin_blist_theme_get_contact_text_info(PidginBlistTheme *theme);
164 172
165 /** 173 /**
166 * Returns the text font and color to be used for online buddies 174 * Returns the text font and color to be used for online buddies
167 * 175 *
168 * @returns a font and color pair 176 * @returns a font and color pair
182 * @returns a font and color pair 190 * @returns a font and color pair
183 */ 191 */
184 FontColorPair *pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme); 192 FontColorPair *pidgin_blist_theme_get_offline_text_info(PidginBlistTheme *theme);
185 193
186 /** 194 /**
195 * Returns the text font and color to be used for idle buddies
196 *
197 * @returns a font and color pair
198 */
199 FontColorPair *pidgin_blist_theme_get_idle_text_info(PidginBlistTheme *theme);
200
201 /**
187 * Returns the text font and color to be used for buddies with unread messages 202 * Returns the text font and color to be used for buddies with unread messages
188 * 203 *
189 * @returns a font and color pair 204 * @returns a font and color pair
190 */ 205 */
191 FontColorPair *pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme); 206 FontColorPair *pidgin_blist_theme_get_unread_message_text_info(PidginBlistTheme *theme);
254 * @param pair the new text font at color pair 269 * @param pair the new text font at color pair
255 */ 270 */
256 void pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, FontColorPair *pair); 271 void pidgin_blist_theme_set_collapsed_text_info(PidginBlistTheme *theme, FontColorPair *pair);
257 272
258 /** 273 /**
259 * Sets the background color to be used for the 1st buddy 274 * Sets the background color to be used for contacts and chats
260 * 275 *
261 * @param color the color for the 1st buddy 276 * @param color the color to use for contacts and chats
262 */ 277 */
263 void pidgin_blist_theme_set_buddy_color_1(PidginBlistTheme *theme, GdkColor *color); 278 void pidgin_blist_theme_set_contact_color(PidginBlistTheme *theme, GdkColor *color);
264 279
265 /** 280 /**
266 * Sets the background color to be used for the 2nd buddy 281 * Sets the text color and font to be used for expanded contacts
267 * 282 *
268 * @param color the color for the 2nd buddy 283 * @param pair the new text font at color pair
269 */ 284 */
270 void pidgin_blist_theme_set_buddy_color_2(PidginBlistTheme *theme, GdkColor *color); 285 void pidgin_blist_theme_set_contact_text_info(PidginBlistTheme *theme, FontColorPair *pair);
271 286
272 /** 287 /**
273 * Sets the text color and font to be used for online buddies 288 * Sets the text color and font to be used for online buddies
274 * 289 *
275 * @param pair the new text font at color pair 290 * @param pair the new text font at color pair
287 * Sets the text color and font to be used for offline buddies 302 * Sets the text color and font to be used for offline buddies
288 * 303 *
289 * @param pair the new text font at color pair 304 * @param pair the new text font at color pair
290 */ 305 */
291 void pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, FontColorPair *pair); 306 void pidgin_blist_theme_set_offline_text_info(PidginBlistTheme *theme, FontColorPair *pair);
307
308 /**
309 * Sets the text color and font to be used for idle buddies
310 *
311 * @param pair the new text font at color pair
312 */
313 void pidgin_blist_theme_set_idle_text_info(PidginBlistTheme *theme, FontColorPair *pair);
292 314
293 /** 315 /**
294 * Sets the text color and font to be used for buddies with an unread message 316 * Sets the text color and font to be used for buddies with an unread message
295 * 317 *
296 * @param pair the new text font at color pair 318 * @param pair the new text font at color pair