pidgin/gtkstyle.h

branch
trac-17174
changeset 38822
93c0cd117e1d
parent 38699
e7b5011e4728
child 38816
9fd4f68ed211
equal deleted inserted replaced
38821:329cf2453fb8 38822:93c0cd117e1d
1 /**
2 * @file gtkstyle.h GTK+ Style utility functions
3 * @ingroup pidgin
4 */
5
6 /* pidgin
7 *
8 * Pidgin is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26 #ifndef _PIDGINSTYLE_H_
27 #define _PIDGINSTYLE_H_
28
29 #include <gtk/gtk.h>
30
31 G_BEGIN_DECLS
32
33 /*@{*/
34
35 /**
36 * Returns TRUE if dark mode is enabled and foreground colours should be invertred
37 *
38 * @param style The GtkStyle in use, or NULL to use a cached version.
39 *
40 * @return @c TRUE if dark mode, @c FALSE otherwise
41 */
42
43 gboolean pidgin_style_is_dark(GtkStyle *style);
44
45 /**
46 * Lighten a color if dark mode is enabled.
47 *
48 * @param style The GtkStyle in use.
49 *
50 * @param color Color to be lightened. Transformed color will be written here.
51 */
52
53 void pidgin_style_adjust_contrast(GtkStyle *style, GdkColor *color);
54
55 /*@}*/
56
57 G_END_DECLS
58
59 #endif /* _PIDGINSTYLE_H_ */

mercurial