5#include "qml_material/core.hpp"
6#include "qml_material/export.hpp"
8namespace qml_material::token
37 Q_GADGET_EXPORT(QML_MATERIAL_API)
39 QML_VALUE_TYPE(typescale)
56 QFont::Weight
weight { QFont::Weight::Normal };
59 bool operator==(
const TypeScaleItem&)
const =
default;
70 using QObject::QObject;
73 Q_PROPERTY(qml_material::token::TypeScaleItem NAME READ NAME CONSTANT FINAL) \
75 const TypeScaleItem& NAME() const noexcept { return default_##NAME; } \
76 inline static constexpr TypeScaleItem default_##NAME { __VA_ARGS__ };
98 X(
body_large , 16, 24, QFont::Normal, QFont::Normal, 0.5 )
TypeScale.
Definition type_scale.hpp:66
qml_material::token::TypeScaleItem label_medium
Medium-sized text labels.
Definition type_scale.hpp:106
qml_material::token::TypeScaleItem body_medium
Used for medium-sized body text.
Definition type_scale.hpp:100
qml_material::token::TypeScaleItem label_large
Large text labels for important interface elements.
Definition type_scale.hpp:104
qml_material::token::TypeScaleItem headline_large
Primary heading text, such as screen titles.
Definition type_scale.hpp:86
qml_material::token::TypeScaleItem label_small
Smallest text labels for interface elements.
Definition type_scale.hpp:108
qml_material::token::TypeScaleItem headline_small
Smallest heading text.
Definition type_scale.hpp:90
qml_material::token::TypeScaleItem title_large
Used for primary text in dialogs, cards.
Definition type_scale.hpp:92
qml_material::token::TypeScaleItem body_small
Used for small body text.
Definition type_scale.hpp:102
qml_material::token::TypeScaleItem title_small
Supporting text in components.
Definition type_scale.hpp:96
qml_material::token::TypeScaleItem body_large
Used for primary body text.
Definition type_scale.hpp:98
qml_material::token::TypeScaleItem headline_medium
Secondary heading text.
Definition type_scale.hpp:88
qml_material::token::TypeScaleItem title_medium
Secondary text in dialogs, cards.
Definition type_scale.hpp:94
qml_material::token::TypeScaleItem display_small
Used for smaller display text.
Definition type_scale.hpp:84
qml_material::token::TypeScaleItem display_large
Used for the largest text on the screen, such as app name on splash screen.
Definition type_scale.hpp:80
qml_material::token::TypeScaleItem display_medium
Used for medium-sized display text, secondary splash screen text.
Definition type_scale.hpp:82
TypeScaleItem.
Definition type_scale.hpp:36
QFont::Weight weight_prominent
Font weight for prominent (emphasized) text.
Definition type_scale.hpp:48
qreal tracking
Letter spacing (tracking) adjustment.
Definition type_scale.hpp:50
QFont::Weight weight
Font weight for normal text.
Definition type_scale.hpp:46
qint32 line_height
Line height in pixels.
Definition type_scale.hpp:44
qint32 size
Font size in pixels.
Definition type_scale.hpp:42