rgba_to_standalone


Description:


[ Version ( since = "1.6" ) ]
public RGBA rgba_to_standalone (RGBA rgba, bool dark)

Adjusts rgba to be suitable as a standalone color.

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

Parameters:

rgba

a background color

dark

Whether to calculate standalone color for light or dark background

standalone_rgba

return location for the standalone color


Namespace: Adw
Package: libadwaita-1