Class · aurore

aurore::ThemeValues

On this page
aurore/core/theme.hpp
#include <aurore/core/theme.hpp>

class aurore::ThemeValues

Description

One variant's colours by key ("aurore/text", "cadran/teal"…): the ones the code adds (the base), and over them the ones of the theme file in use.

Constructors 1

ThemeValues(std::initializer_list< std::pair< std::string, NVGcolor > > list)

The base colours.

theme.hpp:48

Functions 6

void addColor(const std::string &, NVGcolor color)

A colour of the base: what the variant is without a theme file.

theme.hpp:51
NVGcolor getColor(const std::string &)

A colour as drawn now; an unknown key is fatal (check with hasColor()).

theme.hpp:53
bool hasColor(const std::string &) const

Whether the key exists.

theme.hpp:55
void setOverlay(const std::unordered_map< std::string, NVGcolor > &overlay)

The theme file's colours, over the base (empty: the base alone).

theme.hpp:58
const std::unordered_map< std::string, NVGcolor > & getColors() const

Every colour as drawn now, and the base alone.

theme.hpp:61
const std::unordered_map< std::string, NVGcolor > & getBaseColors() const

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