4.1 <AdwAccentColor>

Enumeration: <AdwAccentColor>

Describes the available system accent colors.

Members

blue

Use a blue color (#3584e4 or #0073e5 in Yaru). This is the default value.

teal

Use a teal color (#2190a4 or #4b8501 in Yaru).

green

Use a green color (#3a944a or #4b8501 in Yaru).

yellow

Use a yellow color (#c88800).

orange

Use a orange color (#ed5b00 or #e95420 in Yaru).

red

Use a red color (#e62d42 or #da3450 in Yaru).

pink

Use a pink color (#d56199 or #b34cb3 in Yaru).

purple

Use a purple color (#9141ac or #7764d8 in Yaru).

slate

Use a slate color (#6f8396 or #657b69 in Yaru).

brown

Procedures

Procedure: accent-color:to-rgba! self rgba ⇒ rgba

Converts self to a <GdkRGBA> representing its background color.

The matching foreground color is white.

self

Passed: a <AdwAccentColor>, or one of its symbols.

an accent color

rgba

Passed, filled in, and returned: a <GdkRGBA>.

return location for the color

Procedure: accent-color:to-standalone-rgba! self dark rgba ⇒ rgba

Converts self to a <GdkRGBA> representing its standalone color.

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

self

Passed: a <AdwAccentColor>, or one of its symbols.

an accent color

dark

Passed: a boolean.

Whether to calculate standalone color for light or dark background

rgba

Passed, filled in, and returned: a <GdkRGBA>.

return location for the color