psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::Theme Struct Reference

#include <Theme.hpp>

Public Attributes

std::string_view name {}
ColorScheme scheme {ColorScheme::Dark}
Palette palette {}
Elevation elevation {}
Typography type {}
Metrics metrics {}

Detailed Description

What a skin set and app stylesheets draw with: values only, so any theme works with any skin set. Read it with manager->theme() in StyleSheet::load (and the sizes of the current density with manager->sizes()); switching themes or densities replays the loaded stylesheets. Groups mix with designated initializers: Theme{.palette = themes::pivotalLight.palette}.


The documentation for this struct was generated from the following file: