Loading...
Searching...
No Matches
PillStyle.h
Go to the documentation of this file.
1//
2// PillStyle.h
3//
4
5#ifndef MALENA_PILLSTYLE_H
6#define MALENA_PILLSTYLE_H
7
8#pragma once
9
13
14namespace ml
15{
59 {
60 // ── Assignment from individual layers ─────────────────────────────────
61
63 { static_cast<PillSettings&>(*this) = s; return *this; }
64
66 { static_cast<PillTheme&>(*this) = t; return *this; }
67
69 { static_cast<PillTheme&>(*this) = t; return *this; }
70
72 { static_cast<PillTheme&>(*this) = c; return *this; }
73
75 { static_cast<PillTheme&>(*this) = g; return *this; }
76
78 { static_cast<PillSettings&>(*this) = t; return *this; }
79
81 { static_cast<PillSettings&>(*this) = c; return *this; }
82
83 // ── Apply from global theme (theme layer only) ────────────────────────
84
86 { PillTheme::applyFrom(t); return *this; }
87 };
88
89} // namespace ml
90
91#endif // MALENA_PILLSTYLE_H
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Theme tokens for interactive UI controls.
Theme tokens for all visual components.
Layout and behaviour settings for PillToggle.
Complete style descriptor for PillToggle.
Definition PillStyle.h:59
PillStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
Definition PillStyle.h:85
PillStyle & operator=(const ControlTheme &c)
Definition PillStyle.h:71
PillStyle & operator=(const GraphicTheme &g)
Definition PillStyle.h:74
PillStyle & operator=(const PillSettings &s)
Definition PillStyle.h:62
PillStyle & operator=(const ToggleSettings &t)
Definition PillStyle.h:77
PillStyle & operator=(const ToggleTheme &t)
Definition PillStyle.h:68
PillStyle & operator=(const PillTheme &t)
Definition PillStyle.h:65
PillStyle & operator=(const ControlSettings &c)
Definition PillStyle.h:80
Theme tokens for the PillToggle (iOS-style oval switch).
Definition PillTheme.h:48
PillTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Definition PillTheme.h:58
Universal design token set applied across all Themeable components.
Definition Theme.h:70
Settings shared by all toggle variants — behaviour only.
Theme tokens shared by all toggle variants.
Definition ToggleTheme.h:31