morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::ThemeTokenSpec Struct Reference

One token of the closed ui-theme/1 set: its path, kind and the MorphUi default. More...

#include <theme.hpp>

Public Attributes

std::string_view path
 The dotted path.
ThemeTokenKind kind
 How it is read.
std::string_view color
 A colour's default, #rrggbb; empty for a number.
double number = 0.0
 A number's default, or a dimension's in px.
ThemeShadowSpec shadow {}
 A shadow's default.
std::string_view family
 A font family's default; empty for none, which draws in the platform font.

Detailed Description

One token of the closed ui-theme/1 set: its path, kind and the MorphUi default.

Definition at line 971 of file theme.hpp.

Member Data Documentation

◆ path

std::string_view morph::ui::ThemeTokenSpec::path

The dotted path.

Definition at line 973 of file theme.hpp.

◆ kind

ThemeTokenKind morph::ui::ThemeTokenSpec::kind

How it is read.

Definition at line 975 of file theme.hpp.

◆ color

std::string_view morph::ui::ThemeTokenSpec::color

A colour's default, #rrggbb; empty for a number.

Definition at line 977 of file theme.hpp.

◆ number

double morph::ui::ThemeTokenSpec::number = 0.0

A number's default, or a dimension's in px.

Definition at line 979 of file theme.hpp.

◆ shadow

ThemeShadowSpec morph::ui::ThemeTokenSpec::shadow {}

A shadow's default.

Definition at line 981 of file theme.hpp.

◆ family

std::string_view morph::ui::ThemeTokenSpec::family

A font family's default; empty for none, which draws in the platform font.

Definition at line 983 of file theme.hpp.


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