Function

Adwrgba_to_standalone

Declaration [src]

void
adw_rgba_to_standalone (
  const GdkRGBA* rgba,
  gboolean dark,
  GdkRGBA* standalone_rgba
)

Description [src]

Adjusts rgba to be suitable as a standalone color.

It will typically be darker for light background, and lighter for dark background, ensuring contrast.

Available since:1.6

Parameters

rgba GdkRGBA
 

A background color.

 The data is owned by the caller of the function.
dark gboolean
 

Whether to calculate standalone color for light or dark background.

standalone_rgba GdkRGBA
 

Return location for the standalone color.

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