pidgin 2.14.14dev
Loading...
Searching...
No Matches
gtkstyle.h File Reference

GTK+ Style utility functions. More...

#include <gtk/gtk.h>
Include dependency graph for gtkstyle.h:

Go to the source code of this file.

Functions

G_BEGIN_DECLS gboolean pidgin_style_is_dark (GtkStyle *style)
 Returns TRUE if dark mode is enabled and foreground colours should be invertred.
 
void pidgin_style_adjust_contrast (GtkStyle *style, GdkColor *color)
 Lighten a color if dark mode is enabled.
 

Detailed Description

GTK+ Style utility functions.

Definition in file gtkstyle.h.

Function Documentation

◆ pidgin_style_adjust_contrast()

void pidgin_style_adjust_contrast ( GtkStyle *  style,
GdkColor *  color 
)

Lighten a color if dark mode is enabled.

Parameters
styleThe GtkStyle in use.
colorColor to be lightened. Transformed color will be written here.

◆ pidgin_style_is_dark()

G_BEGIN_DECLS gboolean pidgin_style_is_dark ( GtkStyle *  style)

Returns TRUE if dark mode is enabled and foreground colours should be invertred.

Parameters
styleThe GtkStyle in use, or NULL to use a cached version.
Returns
TRUE if dark mode, FALSE otherwise