Function

Pidgincolor_calculate_for_text

unstable since: 3.0

Declaration [src]

void
pidgin_color_calculate_for_text (
  const char* text,
  GdkRGBA* color
)

Description [src]

Calculate a color for the given text.

This determines a Hue for the color via pidgin_color_hue_for_text() and then checks the AdwStyleManager to see if the application is in dark mode or not and then use HSLuv to generate the color.

Available since: 3.0

Parameters

text

Type: const char*

The text to calculate a color for.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
color

Type: GdkRGBA

A return address for a GdkRGBA that will receive the color.

The argument will be set by the function.
The returned data is owned by the function.