Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
colorlight.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// SPDX-License-Identifier: MPL-2.0
3
4#pragma once
5
6#include <QtCore/qobject.h>
7#include <QtGui/qcolor.h>
8#include <QtQml/qqmlregistration.h>
9
10namespace Fluid {
11
13{
14 Q_GADGET
15 QML_ANONYMOUS
16
17#define FLUID_COLOR_PROPERTY(name) Q_PROPERTY(QColor name READ name CONSTANT FINAL)
18 FLUID_COLOR_PROPERTY(background)
20 FLUID_COLOR_PROPERTY(errorContainer)
21 FLUID_COLOR_PROPERTY(inverseOnSurface)
22 FLUID_COLOR_PROPERTY(inversePrimary)
23 FLUID_COLOR_PROPERTY(inverseSurface)
24 FLUID_COLOR_PROPERTY(onBackground)
26 FLUID_COLOR_PROPERTY(onErrorContainer)
27 FLUID_COLOR_PROPERTY(onPrimary)
28 FLUID_COLOR_PROPERTY(onPrimaryContainer)
29 FLUID_COLOR_PROPERTY(onPrimaryFixed)
30 FLUID_COLOR_PROPERTY(onPrimaryFixedVariant)
31 FLUID_COLOR_PROPERTY(onSecondary)
32 FLUID_COLOR_PROPERTY(onSecondaryContainer)
33 FLUID_COLOR_PROPERTY(onSecondaryFixed)
34 FLUID_COLOR_PROPERTY(onSecondaryFixedVariant)
35 FLUID_COLOR_PROPERTY(onSurface)
36 FLUID_COLOR_PROPERTY(onSurfaceVariant)
37 FLUID_COLOR_PROPERTY(onTertiary)
38 FLUID_COLOR_PROPERTY(onTertiaryContainer)
39 FLUID_COLOR_PROPERTY(onTertiaryFixed)
40 FLUID_COLOR_PROPERTY(onTertiaryFixedVariant)
42 FLUID_COLOR_PROPERTY(outlineVariant)
44 FLUID_COLOR_PROPERTY(primaryContainer)
45 FLUID_COLOR_PROPERTY(primaryFixed)
46 FLUID_COLOR_PROPERTY(primaryFixedDim)
48 FLUID_COLOR_PROPERTY(secondary)
49 FLUID_COLOR_PROPERTY(secondaryContainer)
50 FLUID_COLOR_PROPERTY(secondaryFixed)
51 FLUID_COLOR_PROPERTY(secondaryFixedDim)
53 FLUID_COLOR_PROPERTY(surfaceBright)
54 FLUID_COLOR_PROPERTY(surfaceContainer)
55 FLUID_COLOR_PROPERTY(surfaceContainerHigh)
56 FLUID_COLOR_PROPERTY(surfaceContainerHighest)
57 FLUID_COLOR_PROPERTY(surfaceContainerLow)
58 FLUID_COLOR_PROPERTY(surfaceContainerLowest)
59 FLUID_COLOR_PROPERTY(surfaceDim)
60 FLUID_COLOR_PROPERTY(surfaceTint)
61 FLUID_COLOR_PROPERTY(surfaceVariant)
62 FLUID_COLOR_PROPERTY(tertiary)
63 FLUID_COLOR_PROPERTY(tertiaryContainer)
64 FLUID_COLOR_PROPERTY(tertiaryFixed)
65 FLUID_COLOR_PROPERTY(tertiaryFixedDim)
66#undef FLUID_COLOR_PROPERTY
67
68public:
69#define FLUID_COLOR_GETTER(name) QColor name() const;
70 FLUID_COLOR_GETTER(background)
72 FLUID_COLOR_GETTER(errorContainer)
73 FLUID_COLOR_GETTER(inverseOnSurface)
74 FLUID_COLOR_GETTER(inversePrimary)
75 FLUID_COLOR_GETTER(inverseSurface)
76 FLUID_COLOR_GETTER(onBackground)
77 FLUID_COLOR_GETTER(onError)
78 FLUID_COLOR_GETTER(onErrorContainer)
79 FLUID_COLOR_GETTER(onPrimary)
80 FLUID_COLOR_GETTER(onPrimaryContainer)
81 FLUID_COLOR_GETTER(onPrimaryFixed)
82 FLUID_COLOR_GETTER(onPrimaryFixedVariant)
83 FLUID_COLOR_GETTER(onSecondary)
84 FLUID_COLOR_GETTER(onSecondaryContainer)
85 FLUID_COLOR_GETTER(onSecondaryFixed)
86 FLUID_COLOR_GETTER(onSecondaryFixedVariant)
87 FLUID_COLOR_GETTER(onSurface)
88 FLUID_COLOR_GETTER(onSurfaceVariant)
89 FLUID_COLOR_GETTER(onTertiary)
90 FLUID_COLOR_GETTER(onTertiaryContainer)
91 FLUID_COLOR_GETTER(onTertiaryFixed)
92 FLUID_COLOR_GETTER(onTertiaryFixedVariant)
93 FLUID_COLOR_GETTER(outline)
94 FLUID_COLOR_GETTER(outlineVariant)
95 FLUID_COLOR_GETTER(primary)
96 FLUID_COLOR_GETTER(primaryContainer)
97 FLUID_COLOR_GETTER(primaryFixed)
98 FLUID_COLOR_GETTER(primaryFixedDim)
100 FLUID_COLOR_GETTER(secondary)
101 FLUID_COLOR_GETTER(secondaryContainer)
102 FLUID_COLOR_GETTER(secondaryFixed)
103 FLUID_COLOR_GETTER(secondaryFixedDim)
104 FLUID_COLOR_GETTER(surface)
105 FLUID_COLOR_GETTER(surfaceBright)
106 FLUID_COLOR_GETTER(surfaceContainer)
107 FLUID_COLOR_GETTER(surfaceContainerHigh)
108 FLUID_COLOR_GETTER(surfaceContainerHighest)
109 FLUID_COLOR_GETTER(surfaceContainerLow)
110 FLUID_COLOR_GETTER(surfaceContainerLowest)
111 FLUID_COLOR_GETTER(surfaceDim)
112 FLUID_COLOR_GETTER(surfaceTint)
113 FLUID_COLOR_GETTER(surfaceVariant)
114 FLUID_COLOR_GETTER(tertiary)
115 FLUID_COLOR_GETTER(tertiaryContainer)
116 FLUID_COLOR_GETTER(tertiaryFixed)
117 FLUID_COLOR_GETTER(tertiaryFixedDim)
118#undef FLUID_COLOR_GETTER
119};
120
121} // namespace Fluid
#define FLUID_COLOR_PROPERTY(name)
Definition colordark.h:17
#define FLUID_COLOR_GETTER(name)
Definition colordark.h:69