Function

Adw-1Adwrgba_to_standaloneSince 1.6

  • 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: Gdk.RGBA

      a background color

    • dark: boolean

      Whether to calculate standalone color for light or dark background

    Returns Gdk.RGBA

    1.6