QmlMaterial 0.1.0
Loading...
Searching...
No Matches
token.hpp
1#pragma once
2
3#include <array>
4#include <QtCore/QEasingCurve>
5#include <QtGui/QFont>
6#include <QtQml/QQmlEngine>
7#include <QtQuick/QQuickWindow>
8
9#include "qml_material/core.hpp"
10#include "qml_material/export.hpp"
11#include "qml_material/token/type_scale.hpp"
12#include "qml_material/token/duration.hpp"
13#include "qml_material/token/motion.hpp"
14#include "qml_material/token/split_button.hpp"
15#include "qml_material/token/button.hpp"
16#include "qml_material/token/segmented_button.hpp"
17#include "qml_material/token/combo_box.hpp"
18#include "qml_material/token/text_field.hpp"
19#include "qml_material/token/badge.hpp"
20#include "qml_material/token/fab_menu.hpp"
21#include "qml_material/token/extended_fab.hpp"
22#include "qml_material/token/floating_toolbar.hpp"
23#include "qml_material/token/time_picker.hpp"
24#include "qml_material/anim/interpolator.hpp"
25#include "qml_material/core/enum.hpp"
26Q_MOC_INCLUDE("qml_material/token/icon.hpp")
27
28namespace qml_material::token
29{
30
31class IconToken;
32auto create_icon_token(QObject* parent) -> IconToken*;
33
41 Q_GADGET
42 QML_ANONYMOUS
43
45 Q_PROPERTY(qint32 min_width MEMBER min_width CONSTANT FINAL)
47 Q_PROPERTY(qint32 max_width MEMBER max_width CONSTANT FINAL)
49 Q_PROPERTY(qml_material::Enum::WindowClassType type MEMBER type CONSTANT FINAL)
50
51public:
52 Q_INVOKABLE bool contains(i32 w) const { return w >= min_width && w < max_width; }
53 i32 min_width { 0 };
54 i32 max_width { std::numeric_limits<i32>::max() };
55 Enum::WindowClassType type { Enum::WindowClassType::WindowClassCompact };
56};
57
65 Q_GADGET
66 QML_ANONYMOUS
67
69 Q_PROPERTY(qml_material::token::WindowClassItem compact MEMBER compact CONSTANT FINAL)
71 Q_PROPERTY(qml_material::token::WindowClassItem medium MEMBER medium CONSTANT FINAL)
73 Q_PROPERTY(qml_material::token::WindowClassItem expanded MEMBER expanded CONSTANT FINAL)
75 Q_PROPERTY(qml_material::token::WindowClassItem large MEMBER large CONSTANT FINAL)
77 Q_PROPERTY(qml_material::token::WindowClassItem extra_large MEMBER extra_large CONSTANT FINAL)
78
79public:
80 using Type = Enum::WindowClassType;
81
82 Q_INVOKABLE WindowClassItem select(i32 w) const {
83 std::array wcs { &compact, &medium, &expanded, &large, &extra_large };
84 for (auto& el : wcs) {
85 if (el->contains(w)) return *el;
86 }
87 return compact;
88 }
89 Q_INVOKABLE Enum::WindowClassType select_type(i32 w) const {
90 std::array wcs { &compact, &medium, &expanded, &large, &extra_large };
91 for (auto& el : wcs) {
92 if (el->contains(w)) return el->type;
93 }
94 return compact.type;
95 }
96 WindowClassItem compact { 0, 600, Type::WindowClassCompact };
97 WindowClassItem medium { 600, 840, Type::WindowClassMedium };
98 WindowClassItem expanded { 840, 1200, Type::WindowClassExpanded };
99 WindowClassItem large { 1200, 1600, Type::WindowClassLarge };
100 WindowClassItem extra_large { 1600,
101 std::numeric_limits<i32>::max(),
102 Type::WindowClassExtraLarge };
103};
104
111struct Elevation {
112 Q_GADGET_EXPORT(QML_MATERIAL_API)
113 QML_ANONYMOUS
114
116 Q_PROPERTY(qint32 level0 MEMBER level0 CONSTANT FINAL)
118 Q_PROPERTY(qint32 level1 MEMBER level1 CONSTANT FINAL)
120 Q_PROPERTY(qint32 level2 MEMBER level2 CONSTANT FINAL)
122 Q_PROPERTY(qint32 level3 MEMBER level3 CONSTANT FINAL)
124 Q_PROPERTY(qint32 level4 MEMBER level4 CONSTANT FINAL)
126 Q_PROPERTY(qint32 level5 MEMBER level5 CONSTANT FINAL)
127public:
128 bool operator==(const Elevation&) const = default;
129 i32 level0 { 0 };
130 i32 level1 { 1 };
131 i32 level2 { 3 };
132 i32 level3 { 6 };
133 i32 level4 { 8 };
134 i32 level5 { 12 };
135};
136
141struct Easing {
142 Q_GADGET_EXPORT(QML_MATERIAL_API)
143 QML_ANONYMOUS
145 Q_PROPERTY(QEasingCurve emphasized READ emphasized CONSTANT FINAL)
147 Q_PROPERTY(QEasingCurve emphasized_accelerate READ emphasized_accelerate CONSTANT FINAL)
149 Q_PROPERTY(QEasingCurve emphasized_decelerate READ emphasized_decelerate CONSTANT FINAL)
151 Q_PROPERTY(QEasingCurve standard READ standard CONSTANT FINAL)
153 Q_PROPERTY(QEasingCurve standard_accelerate READ standard_accelerate CONSTANT FINAL)
155 Q_PROPERTY(QEasingCurve standard_decelerate READ standard_decelerate CONSTANT FINAL)
157 Q_PROPERTY(QEasingCurve legacy READ legacy CONSTANT FINAL)
159 Q_PROPERTY(QEasingCurve legacy_accelerate READ legacy_accelerate CONSTANT FINAL)
161 Q_PROPERTY(QEasingCurve legacy_decelerate READ legacy_decelerate CONSTANT FINAL)
163 Q_PROPERTY(QEasingCurve linear READ linear CONSTANT FINAL)
164
165public:
166 bool operator==(const Easing&) const = default;
167 auto emphasized() const noexcept -> QEasingCurve { return anim::emphasized(); }
168 auto emphasized_accelerate() const noexcept -> QEasingCurve {
169 return anim::emphasized_accelerate();
170 }
171 auto emphasized_decelerate() const noexcept -> QEasingCurve {
172 return anim::emphasized_decelerate();
173 }
174 auto standard() const noexcept -> QEasingCurve { return anim::standard(); }
175 auto standard_accelerate() const noexcept -> QEasingCurve {
176 return anim::standard_accelerate();
177 }
178 auto standard_decelerate() const noexcept -> QEasingCurve {
179 return anim::standard_decelerate();
180 }
181 auto legacy() const noexcept -> QEasingCurve { return anim::legacy(); }
182 auto legacy_accelerate() const noexcept -> QEasingCurve { return anim::legacy_accelerate(); }
183 auto legacy_decelerate() const noexcept -> QEasingCurve { return anim::legacy_decelerate(); }
184 auto linear() const noexcept -> QEasingCurve { return anim::linear(); }
185};
186
194 Q_GADGET
195 QML_ANONYMOUS
197 Q_PROPERTY(qint32 none MEMBER none CONSTANT FINAL)
199 Q_PROPERTY(qint32 extra_small MEMBER extra_small CONSTANT FINAL)
201 Q_PROPERTY(qint32 small MEMBER small CONSTANT FINAL)
203 Q_PROPERTY(qint32 medium MEMBER medium CONSTANT FINAL)
205 Q_PROPERTY(qint32 large MEMBER large CONSTANT FINAL)
207 Q_PROPERTY(qint32 extra_large MEMBER extra_large CONSTANT FINAL)
209 Q_PROPERTY(qint32 full MEMBER full CONSTANT FINAL)
210public:
212 i32 none { 0 };
213 i32 extra_small { 4 };
214 i32 small { 8 };
215 i32 medium { 12 };
216 i32 large { 16 };
217 i32 extra_large { 28 };
218 i32 full { 100 };
219 bool operator==(const ShapeCorner&) const = default;
220};
221
227struct Shape {
228 Q_GADGET
229 QML_ANONYMOUS
230 Q_PROPERTY(qml_material::token::ShapeCorner corner MEMBER corner CONSTANT FINAL)
231public:
232 ShapeCorner corner;
233 bool operator==(const Shape&) const = default;
234};
235
242struct StateItem {
243 Q_GADGET
244 QML_ANONYMOUS
246 Q_PROPERTY(double state_layer_opacity MEMBER state_layer_opacity CONSTANT FINAL)
247public:
248 bool operator==(const StateItem&) const = default;
249 double state_layer_opacity;
250};
251
260struct FocusRing {
261 Q_GADGET
262 QML_ANONYMOUS
263 Q_PROPERTY(qreal outer_stroke_width MEMBER outer_stroke_width CONSTANT FINAL)
264 Q_PROPERTY(qreal inner_stroke_width MEMBER inner_stroke_width CONSTANT FINAL)
265 Q_PROPERTY(qreal inner_stroke_inset MEMBER inner_stroke_inset CONSTANT FINAL)
266 Q_PROPERTY(qreal outer_offset MEMBER outer_offset CONSTANT FINAL)
267public:
268 bool operator==(const FocusRing&) const = default;
269 qreal outer_stroke_width { 2 };
270 qreal inner_stroke_width { 3 };
271 qreal inner_stroke_inset { 1 };
272 qreal outer_offset { 2 };
273};
274
281struct State {
282 Q_GADGET_EXPORT(QML_MATERIAL_API)
283 QML_ANONYMOUS
285 Q_PROPERTY(qml_material::token::StateItem hover MEMBER hover CONSTANT FINAL)
287 Q_PROPERTY(qml_material::token::StateItem pressed MEMBER pressed CONSTANT FINAL)
289 Q_PROPERTY(qml_material::token::StateItem focus MEMBER focus CONSTANT FINAL)
291 Q_PROPERTY(qml_material::token::StateItem dragged MEMBER dragged CONSTANT FINAL)
292
294 Q_PROPERTY(qml_material::token::FocusRing focus_ring MEMBER focus_ring CONSTANT FINAL)
295
297 Q_PROPERTY(double disabled_content MEMBER disabled_content CONSTANT FINAL)
299 Q_PROPERTY(double disabled_container MEMBER disabled_container CONSTANT FINAL)
300
301public:
302 bool operator==(const State&) const = default;
303 StateItem hover { 0.08 };
304 StateItem pressed { 0.1 };
305 StateItem focus { 0.1 };
306 StateItem dragged { 0.16 };
307
308 FocusRing focus_ring;
309
310 double disabled_content { 0.38 };
311 double disabled_container { 0.12 };
312};
313
320class Flick : public QObject {
321 Q_OBJECT
322 QML_ANONYMOUS
324 Q_PROPERTY(qint32 pressDelay READ pressDelay NOTIFY pressDelayChanged FINAL)
326 Q_PROPERTY(
327 double flickDeceleration READ flickDeceleration NOTIFY flickDecelerationChanged FINAL)
329 Q_PROPERTY(double maximumFlickVelocity READ maximumFlickVelocity NOTIFY
330 maximumFlickVelocityChanged FINAL)
331public:
332 Flick(QObject* parent = nullptr);
333 ~Flick();
334 auto pressDelay() const -> qint32;
335 auto flickDeceleration() const -> double;
336 auto maximumFlickVelocity() const -> double;
337
338 Q_SIGNAL void pressDelayChanged();
339 Q_SIGNAL void flickDecelerationChanged();
340 Q_SIGNAL void maximumFlickVelocityChanged();
341
342private:
343 qint32 m_press_delay;
344 double m_flick_deceleration;
345 double m_maximum_flickVelocity;
346};
347
351struct Carousel {
352 Q_GADGET
353 QML_ANONYMOUS
354 Q_PROPERTY(qreal item_spacing MEMBER item_spacing CONSTANT FINAL)
355 Q_PROPERTY(qreal container_height_horizontal MEMBER container_height_horizontal CONSTANT FINAL)
356 Q_PROPERTY(qreal default_item_extent MEMBER default_item_extent CONSTANT FINAL)
357 Q_PROPERTY(qreal small_item_min MEMBER small_item_min CONSTANT FINAL)
358 Q_PROPERTY(qreal small_item_max MEMBER small_item_max CONSTANT FINAL)
359 Q_PROPERTY(qreal container_padding_vertical MEMBER container_padding_vertical CONSTANT FINAL)
360 Q_PROPERTY(qreal small_item_min_ratio MEMBER small_item_min_ratio CONSTANT FINAL)
361 Q_PROPERTY(qreal small_item_max_ratio MEMBER small_item_max_ratio CONSTANT FINAL)
362 Q_PROPERTY(qreal large_item_max_aspect MEMBER large_item_max_aspect CONSTANT FINAL)
363 Q_PROPERTY(qreal min_item_aspect MEMBER min_item_aspect CONSTANT FINAL)
364 Q_PROPERTY(qreal max_item_aspect MEMBER max_item_aspect CONSTANT FINAL)
365 Q_PROPERTY(qint32 item_corner MEMBER item_corner CONSTANT FINAL)
366 Q_PROPERTY(qint32 snap_duration MEMBER snap_duration CONSTANT FINAL)
367 Q_PROPERTY(qreal title_fade_span MEMBER title_fade_span CONSTANT FINAL)
368 Q_PROPERTY(qreal chrome_row_height MEMBER chrome_row_height CONSTANT FINAL)
369 Q_PROPERTY(qreal chrome_row_spacing MEMBER chrome_row_spacing CONSTANT FINAL)
370 Q_PROPERTY(qreal default_width MEMBER default_width CONSTANT FINAL)
371 Q_PROPERTY(qreal default_height_vertical MEMBER default_height_vertical CONSTANT FINAL)
372 Q_PROPERTY(qreal min_peek_px MEMBER min_peek_px CONSTANT FINAL)
373 Q_PROPERTY(qreal parallax_ratio MEMBER parallax_ratio CONSTANT FINAL)
374 Q_PROPERTY(qreal parallax_ratio_uncontained MEMBER parallax_ratio_uncontained CONSTANT FINAL)
375public:
376 qreal item_spacing { 8 };
377 qreal container_height_horizontal { 196 };
378 qreal default_item_extent { 180 };
379 qreal small_item_min { 40 };
380 qreal small_item_max { 56 };
381 qreal container_padding_vertical { 8 };
382 qreal small_item_min_ratio { 0.45 };
383 qreal small_item_max_ratio { 0.55 };
384 qreal large_item_max_aspect { 2.0 };
385 qreal min_item_aspect { 9.0 / 16.0 };
386 qreal max_item_aspect { 16.0 / 9.0 };
387 i32 item_corner { 28 };
388 i32 snap_duration { int(Duration {}.medium4) };
389 qreal title_fade_span { 80 };
390 qreal chrome_row_height { 40 };
391 qreal chrome_row_spacing { 8 };
392 qreal default_width { 480 };
393 qreal default_height_vertical { 320 };
394 qreal min_peek_px { 16 };
395 qreal parallax_ratio { 0.35 };
396 qreal parallax_ratio_uncontained { 0.5 };
397};
398
402struct Slider {
403 Q_GADGET
404 QML_ANONYMOUS
405 Q_PROPERTY(qreal active_track_height MEMBER active_track_height CONSTANT FINAL)
406 Q_PROPERTY(qreal inactive_track_height MEMBER inactive_track_height CONSTANT FINAL)
407 Q_PROPERTY(qreal active_track_height_xsmall MEMBER active_track_height_xsmall CONSTANT FINAL)
408 Q_PROPERTY(qreal active_track_height_small MEMBER active_track_height_small CONSTANT FINAL)
409 Q_PROPERTY(qreal active_track_height_medium MEMBER active_track_height_medium CONSTANT FINAL)
410 Q_PROPERTY(qreal active_track_height_large MEMBER active_track_height_large CONSTANT FINAL)
411 Q_PROPERTY(qreal active_track_height_xlarge MEMBER active_track_height_xlarge CONSTANT FINAL)
412 Q_PROPERTY(qreal stop_indicator_size MEMBER stop_indicator_size CONSTANT FINAL)
413 Q_PROPERTY(qreal thumb_track_gap MEMBER thumb_track_gap CONSTANT FINAL)
414 Q_PROPERTY(qreal track_inside_corner MEMBER track_inside_corner CONSTANT FINAL)
415 Q_PROPERTY(qreal inset_icon_size MEMBER inset_icon_size CONSTANT FINAL)
416 Q_PROPERTY(qreal inset_icon_padding MEMBER inset_icon_padding CONSTANT FINAL)
417 Q_PROPERTY(qint32 handle_height MEMBER handle_height CONSTANT FINAL)
418 Q_PROPERTY(qint32 handle_width MEMBER handle_width CONSTANT FINAL)
419public:
420 qreal active_track_height { 16 };
421 qreal inactive_track_height { 4 };
422 qreal active_track_height_xsmall { 16 };
423 qreal active_track_height_small { 24 };
424 qreal active_track_height_medium { 40 };
425 qreal active_track_height_large { 56 };
426 qreal active_track_height_xlarge { 96 };
427 qreal stop_indicator_size { 4 };
428 qreal thumb_track_gap { 6 };
429 qreal track_inside_corner { 2 };
430 qreal inset_icon_size { 24 };
431 qreal inset_icon_padding { 8 };
432 i32 handle_height { 44 };
433 i32 handle_width { 12 };
434};
435
442struct Spacing {
443 Q_GADGET
444 QML_ANONYMOUS
446 Q_PROPERTY(qint32 none MEMBER none CONSTANT FINAL)
448 Q_PROPERTY(qint32 extra_small MEMBER extra_small CONSTANT FINAL)
450 Q_PROPERTY(qint32 small MEMBER small CONSTANT FINAL)
452 Q_PROPERTY(qint32 medium_small MEMBER medium_small CONSTANT FINAL)
454 Q_PROPERTY(qint32 medium MEMBER medium CONSTANT FINAL)
456 Q_PROPERTY(qint32 large_medium MEMBER large_medium CONSTANT FINAL)
458 Q_PROPERTY(qint32 large MEMBER large CONSTANT FINAL)
460 Q_PROPERTY(qint32 extra_large MEMBER extra_large CONSTANT FINAL)
461public:
462 i32 none { 0 };
463 i32 extra_small { 4 };
464 i32 small { 8 };
465 i32 medium_small { 12 };
466 i32 medium { 16 };
467 i32 large_medium { 24 };
468 i32 large { 32 };
469 i32 extra_large { 48 };
470};
471
478class Token : public QObject {
479 Q_OBJECT
480 Q_PROPERTY(QQmlListProperty<QObject> datas READ datas FINAL)
481 Q_CLASSINFO("DefaultProperty", "datas")
482 QML_NAMED_ELEMENT(TokenImpl)
483
484 Q_PROPERTY(QString version READ version CONSTANT FINAL)
485 Q_PROPERTY(QString iconFontUrl READ icon_font_url CONSTANT FINAL)
486 Q_PROPERTY(QString iconFill0FontUrl READ icon_fill_0_font_url CONSTANT FINAL)
487 Q_PROPERTY(QString iconFill1FontUrl READ icon_fill_1_font_url CONSTANT FINAL)
488
489
490 Q_PROPERTY(qml_material::token::TypeScale* typescale READ typescale CONSTANT FINAL)
492 Q_PROPERTY(qml_material::token::IconToken* icon READ icon CONSTANT FINAL)
494 Q_PROPERTY(qml_material::token::Flick* flick READ flick CONSTANT FINAL)
496 Q_PROPERTY(qml_material::token::Elevation elevation READ elevation CONSTANT FINAL)
498 Q_PROPERTY(qml_material::token::Duration duration READ duration CONSTANT FINAL)
500 Q_PROPERTY(qml_material::token::Easing easing READ easing CONSTANT FINAL)
501 Q_PROPERTY(qml_material::token::Motion motion READ motion CONSTANT FINAL)
503 Q_PROPERTY(qml_material::token::State state READ state CONSTANT FINAL)
505 Q_PROPERTY(qml_material::token::Shape shape READ shape CONSTANT FINAL)
507 Q_PROPERTY(qml_material::token::WindowClass window_class READ window_class CONSTANT FINAL)
509 Q_PROPERTY(qml_material::token::Spacing spacing READ spacing CONSTANT FINAL)
511 Q_PROPERTY(qml_material::token::SplitButtonSize split_button READ split_button CONSTANT FINAL)
513 Q_PROPERTY(qml_material::token::ButtonSize button READ button CONSTANT FINAL)
515 Q_PROPERTY(qml_material::token::SegmentedButtonSize segmented_button READ segmented_button
516 CONSTANT FINAL)
518 Q_PROPERTY(qml_material::token::IconButtonSize icon_button READ icon_button CONSTANT FINAL)
520 Q_PROPERTY(qml_material::token::ComboBoxSize combo_box READ combo_box CONSTANT FINAL)
522 Q_PROPERTY(qml_material::token::TextFieldSize text_field READ text_field CONSTANT FINAL)
524 Q_PROPERTY(qml_material::token::BadgeSize badge READ badge CONSTANT FINAL)
525 Q_PROPERTY(qml_material::token::FABMenu fab_menu READ fab_menu CONSTANT FINAL)
526 Q_PROPERTY(qml_material::token::ExtendedFAB extended_fab READ extended_fab CONSTANT FINAL)
527 Q_PROPERTY(
528 qml_material::token::FloatingToolbar floating_toolbar READ floating_toolbar CONSTANT FINAL)
530 Q_PROPERTY(qml_material::token::Carousel carousel READ carousel CONSTANT FINAL)
531 Q_PROPERTY(qml_material::token::Slider slider READ slider CONSTANT FINAL)
532 Q_PROPERTY(qml_material::token::TimePicker time_picker READ time_picker CONSTANT FINAL)
533public:
534 Token(QObject* = nullptr);
535 TimePicker time_picker() const { return {}; }
536 FABMenu fab_menu() const { return {}; }
537 ExtendedFAB extended_fab() const { return {}; }
538 FloatingToolbar floating_toolbar() const { return {}; }
539 ~Token();
540
541 auto version() const -> QString;
542 auto icon_font_url() const -> QString;
543 auto icon_fill_0_font_url() const -> QString;
544 auto icon_fill_1_font_url() const -> QString;
545
546 auto typescale() const -> TypeScale*;
547 auto icon() const -> IconToken*;
548 auto flick() const -> Flick*;
549 auto elevation() const -> const Elevation&;
550 auto state() const -> const State&;
551 auto shape() const -> const Shape&;
552 auto window_class() const -> const WindowClass&;
553 auto duration() const -> const Duration&;
554 auto easing() const -> const Easing&;
555 auto motion() const -> Motion { return {}; }
556 auto spacing() const -> const Spacing&;
557 auto split_button() const -> const SplitButtonSize&;
558 auto button() const -> const ButtonSize&;
559 auto segmented_button() const -> const SegmentedButtonSize&;
560 auto icon_button() const -> const IconButtonSize&;
561 auto combo_box() const -> const ComboBoxSize&;
562 auto text_field() const -> const TextFieldSize&;
563 auto badge() const -> const BadgeSize&;
564 auto carousel() const -> const Carousel&;
565 auto slider() const -> const Slider&;
566
567 auto datas() -> QQmlListProperty<QObject>;
568
569 Q_INVOKABLE double cal_curve_scale(double dpr) const;
570
571private:
572 TypeScale* m_typescale;
573 IconToken* m_icon;
574 Flick* m_flick;
575 Duration m_duration;
576 Easing m_easing;
577 Elevation m_elevation;
578 State m_state;
579 Shape m_shape;
580 WindowClass m_win_class;
581 Spacing m_spacing;
582 SplitButtonSize m_split_button;
583 ButtonSize m_button;
584 SegmentedButtonSize m_segmented_button;
585 IconButtonSize m_icon_button;
586 ComboBoxSize m_combo_box;
587 TextFieldSize m_text_field;
588 BadgeSize m_badge;
589 Carousel m_carousel;
590 Slider m_slider;
591
592 QList<QObject*> m_datas;
593};
594
595} // namespace qml_material::token
Matieral Token.
Definition Token.qml:18
Enum.
Definition enum.hpp:13
WindowClassType
Definition enum.hpp:152
Handles flicking behavior and physics parameters.
Definition token.hpp:320
IconToken, full codes.
Definition icon.hpp:14
Main token container for Material Design system.
Definition token.hpp:478
TypeScale.
Definition type_scale.hpp:66
Collection of button size tokens for different size classes.
Definition button.hpp:47
Carousel layout and sizing tokens (M3 Carousel specs)
Definition token.hpp:351
Motion duration.
Definition duration.hpp:14
qreal medium4
Extended medium duration (400ms)
Definition duration.hpp:32
Motion easing.
Definition token.hpp:141
Defines elevation levels for Material Design shadows.
Definition token.hpp:111
Geometry tokens for the M3 keyboard focus ring.
Definition token.hpp:260
Collection of icon button size tokens for different size classes.
Definition button.hpp:148
Collection of segmented button size tokens for different size classes.
Definition segmented_button.hpp:47
Defines corner radius values for shape styling.
Definition token.hpp:193
Container for shape-related styling properties.
Definition token.hpp:227
Slider layout tokens (M3 Slider specs)
Definition token.hpp:402
Defines standard spacing values.
Definition token.hpp:442
Collection of split button size tokens for different size classes.
Definition split_button.hpp:70
Defines opacity values for different UI states.
Definition token.hpp:242
Manages UI element state appearances.
Definition token.hpp:281
Represents a window class category with size constraints.
Definition token.hpp:40
qml_material::Enum::WindowClassType type
Type classification of the window size (compact, medium, expanded etc.)
Definition token.hpp:49
Window classification system based on width ranges.
Definition token.hpp:64