Fluid
1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
colorlight.cpp
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
#include "
colorlight.h
"
5
#include "
palette.h
"
6
7
namespace
Fluid
{
8
9
// Mappings from ColorLightTokens.kt, VERSION: v0_210, in the pinned AndroidX directory:
10
// https://android.googlesource.com/platform/frameworks/support/+/5ba2cdd61be7b6945db999b238d14f3c626136fb/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/tokens/
11
#define FLUID_COLOR_TOKEN(name, paletteName) \
12
QColor ColorLightTokens::name() const \
13
{ \
14
return PaletteTokens().paletteName(); \
15
}
16
17
FLUID_COLOR_TOKEN
(background, neutral98)
18
FLUID_COLOR_TOKEN
(error, error40)
19
FLUID_COLOR_TOKEN
(errorContainer, error90)
20
FLUID_COLOR_TOKEN
(inverseOnSurface, neutral95)
21
FLUID_COLOR_TOKEN
(inversePrimary, primary80)
22
FLUID_COLOR_TOKEN
(inverseSurface, neutral20)
23
FLUID_COLOR_TOKEN
(onBackground, neutral10)
24
FLUID_COLOR_TOKEN
(onError, error100)
25
FLUID_COLOR_TOKEN
(onErrorContainer, error10)
26
FLUID_COLOR_TOKEN
(onPrimary, primary100)
27
FLUID_COLOR_TOKEN
(onPrimaryContainer, primary10)
28
FLUID_COLOR_TOKEN
(onPrimaryFixed, primary10)
29
FLUID_COLOR_TOKEN
(onPrimaryFixedVariant, primary30)
30
FLUID_COLOR_TOKEN
(onSecondary, secondary100)
31
FLUID_COLOR_TOKEN
(onSecondaryContainer, secondary10)
32
FLUID_COLOR_TOKEN
(onSecondaryFixed, secondary10)
33
FLUID_COLOR_TOKEN
(onSecondaryFixedVariant, secondary30)
34
FLUID_COLOR_TOKEN
(onSurface, neutral10)
35
FLUID_COLOR_TOKEN
(onSurfaceVariant, neutralVariant30)
36
FLUID_COLOR_TOKEN
(onTertiary, tertiary100)
37
FLUID_COLOR_TOKEN
(onTertiaryContainer, tertiary10)
38
FLUID_COLOR_TOKEN
(onTertiaryFixed, tertiary10)
39
FLUID_COLOR_TOKEN
(onTertiaryFixedVariant, tertiary30)
40
FLUID_COLOR_TOKEN
(outline, neutralVariant50)
41
FLUID_COLOR_TOKEN
(outlineVariant, neutralVariant80)
42
FLUID_COLOR_TOKEN
(primary, primary40)
43
FLUID_COLOR_TOKEN
(primaryContainer, primary90)
44
FLUID_COLOR_TOKEN
(primaryFixed, primary90)
45
FLUID_COLOR_TOKEN
(primaryFixedDim, primary80)
46
FLUID_COLOR_TOKEN
(scrim, neutral0)
47
FLUID_COLOR_TOKEN
(secondary, secondary40)
48
FLUID_COLOR_TOKEN
(secondaryContainer, secondary90)
49
FLUID_COLOR_TOKEN
(secondaryFixed, secondary90)
50
FLUID_COLOR_TOKEN
(secondaryFixedDim, secondary80)
51
FLUID_COLOR_TOKEN
(surface, neutral98)
52
FLUID_COLOR_TOKEN
(surfaceBright, neutral98)
53
FLUID_COLOR_TOKEN
(surfaceContainer, neutral94)
54
FLUID_COLOR_TOKEN
(surfaceContainerHigh, neutral92)
55
FLUID_COLOR_TOKEN
(surfaceContainerHighest, neutral90)
56
FLUID_COLOR_TOKEN
(surfaceContainerLow, neutral96)
57
FLUID_COLOR_TOKEN
(surfaceContainerLowest, neutral100)
58
FLUID_COLOR_TOKEN
(surfaceDim, neutral87)
59
FLUID_COLOR_TOKEN
(surfaceTint, primary40)
60
FLUID_COLOR_TOKEN
(surfaceVariant, neutralVariant90)
61
FLUID_COLOR_TOKEN
(tertiary, tertiary40)
62
FLUID_COLOR_TOKEN
(tertiaryContainer, tertiary90)
63
FLUID_COLOR_TOKEN
(tertiaryFixed, tertiary90)
64
FLUID_COLOR_TOKEN
(tertiaryFixedDim, tertiary80)
65
66
#undef FLUID_COLOR_TOKEN
67
68
}
// namespace Fluid
FLUID_COLOR_TOKEN
#define FLUID_COLOR_TOKEN(name, paletteName)
Definition
colordark.cpp:11
colorlight.h
Fluid
Definition
tooltipattached.cpp:15
palette.h
src
controls
cpp
tokens
colorlight.cpp
Generated by
1.9.8