Struct · cadran::palette

cadran::palette::Palette

On this page
aurore/cadran/ui/cadran_palette.hpp
#include <aurore/cadran/ui/cadran_palette.hpp>

struct cadran::palette::Palette

Description

Dark: the boards' navy. Light: the style board's cool white, the inks darkened to 4.5:1 on every surface they are drawn on, the rail's active pill included (teal #0A705F, amber #8A5200, coral #B71C1C); the quiet text too, on both (text3 4.5:1 on the second surface). The focus ring in the dark teal, its glow no lighter than the fill teal: 3:1 or more on the background at any point of its pulse (WCAG 1.4.11). The dark theme's hairline at 14 % white: the cards stay apart on a TV that crushes its blacks.

Attributes 52

Rgba bg
Rgba text
Rgba text2
Rgba text3
Rgba surf
Rgba surf2
Rgba line
Rgba teal
Rgba teal_fill
Rgba teal_soft
Rgba amber
Rgba amber_fill
Rgba coral
Rgba coral_fill
Rgba coral_line
Rgba track
Rgba glow
Rgba glow_strong
Rgba amber_surf
Rgba amber_line
Rgba pill_ok
Rgba pill_ok_ink
Rgba rail_active
Rgba key_bg
Rgba key_fg
Rgba hl1
Rgba hl2
Rgba border
Rgba blue
Rgba violet

a release note's alerts, a build's tags

cadran_palette.hpp:33
Rgba coral_soft

A removal's soft fill (the header's pill in danger).

cadran_palette.hpp:35
Rgba well

The empty part of a progress bar, behind a game's missing cover.

cadran_palette.hpp:37
Rgba pink

The action tiles' fourth ink (cadran::List::tiles()), after teal, blue and violet: the third avatar's pink, darker on white.

cadran_palette.hpp:40
Rgba avatar0

The accounts' avatars, in turn: fills under a navy initial, alike on both themes.

cadran_palette.hpp:43
Rgba avatar1
Rgba avatar2
Rgba avatar3
Rgba knob

A switch's knob, white on either track, and its edge while off.

cadran_palette.hpp:45
Rgba knob_line
Rgba bar

A chart's bars, today's lighter.

cadran_palette.hpp:47
Rgba bar_today
Rgba backdrop

Behind a dialog or a picker: the navy, dimmed enough that the screen under it does not read through around a dialog's text and QR codes. A toast: a card of the second surface on the dark theme, navy on the light one, and its text.

cadran_palette.hpp:52
Rgba toast
Rgba toast_text
Rgba on_fill

The label on a teal or coral fill (a confirmation's, a primary button's): the navy.

cadran_palette.hpp:55
Rgba hold_fill

A held button filling up (ui::hold_confirm), over its own colour.

cadran_palette.hpp:57
Rgba rail_shadow

The rail's shadow over the tab while it is out (its darkest).

cadran_palette.hpp:59
Rgba click_pulse

A press's flash: the fill teal, faint.

cadran_palette.hpp:61
Rgba text_off

What the app cannot do now (a read-only mode, ui::show_writable): the text, faded.

cadran_palette.hpp:64
Rgba brand_track

The loading screen's bar (LoadingBar::setBrand), alike in both themes: its track, its fill and the fill's lighter end.

cadran_palette.hpp:67
Rgba brand_fill
Rgba brand_glow

Read from Aurore's headers by Doxygen at each build · library/include