mark PurpleImageClass as private
[pidgin-git.git] / pidgin / gtkstyle.h
bloba85ac44240c5cbf7ece8dcd79372539af937c6e5
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 /**
23 * SECTION:gtkstyle
24 * @section_id: pidgin-gtkstyle
25 * @short_description: <filename>gtkstyle.h</filename>
26 * @title: Style API
29 #ifndef _PIDGINSTYLE_H_
30 #define _PIDGINSTYLE_H_
32 #include <gtk/gtk.h>
34 G_BEGIN_DECLS
36 /**
37 * pidgin_style_is_dark:
38 * @style: The GtkStyle in use, or NULL to use a cached version.
40 * Returns whether or not dark mode is enabled.
42 * Returns: TRUE if dark mode is enabled and foreground colours should be invertred
45 gboolean pidgin_style_is_dark(GtkStyle *style);
47 /**
48 * pidgin_style_adjust_contrast:
49 * @style: The GtkStyle in use.
50 * @color: Color to be lightened. Transformed color will be written here.
52 * Lighten a color if dark mode is enabled.
55 void pidgin_style_adjust_contrast(GtkStyle *style, GdkRGBA *color);
57 G_END_DECLS
59 #endif /* _PIDGINSTYLE_H_ */