Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
colordark.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 "colordark.h"
5#include "palette.h"
6
7namespace Fluid {
8
9// Mappings from ColorDarkTokens.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 ColorDarkTokens::name() const \
13 { \
14 return PaletteTokens().paletteName(); \
15 }
16
17FLUID_COLOR_TOKEN(background, neutral6)
18FLUID_COLOR_TOKEN(error, error80)
19FLUID_COLOR_TOKEN(errorContainer, error30)
20FLUID_COLOR_TOKEN(inverseOnSurface, neutral20)
21FLUID_COLOR_TOKEN(inversePrimary, primary40)
22FLUID_COLOR_TOKEN(inverseSurface, neutral90)
23FLUID_COLOR_TOKEN(onBackground, neutral90)
24FLUID_COLOR_TOKEN(onError, error20)
25FLUID_COLOR_TOKEN(onErrorContainer, error90)
26FLUID_COLOR_TOKEN(onPrimary, primary20)
27FLUID_COLOR_TOKEN(onPrimaryContainer, primary90)
28FLUID_COLOR_TOKEN(onPrimaryFixed, primary10)
29FLUID_COLOR_TOKEN(onPrimaryFixedVariant, primary30)
30FLUID_COLOR_TOKEN(onSecondary, secondary20)
31FLUID_COLOR_TOKEN(onSecondaryContainer, secondary90)
32FLUID_COLOR_TOKEN(onSecondaryFixed, secondary10)
33FLUID_COLOR_TOKEN(onSecondaryFixedVariant, secondary30)
34FLUID_COLOR_TOKEN(onSurface, neutral90)
35FLUID_COLOR_TOKEN(onSurfaceVariant, neutralVariant80)
36FLUID_COLOR_TOKEN(onTertiary, tertiary20)
37FLUID_COLOR_TOKEN(onTertiaryContainer, tertiary90)
38FLUID_COLOR_TOKEN(onTertiaryFixed, tertiary10)
39FLUID_COLOR_TOKEN(onTertiaryFixedVariant, tertiary30)
40FLUID_COLOR_TOKEN(outline, neutralVariant60)
41FLUID_COLOR_TOKEN(outlineVariant, neutralVariant30)
42FLUID_COLOR_TOKEN(primary, primary80)
43FLUID_COLOR_TOKEN(primaryContainer, primary30)
44FLUID_COLOR_TOKEN(primaryFixed, primary90)
45FLUID_COLOR_TOKEN(primaryFixedDim, primary80)
46FLUID_COLOR_TOKEN(scrim, neutral0)
47FLUID_COLOR_TOKEN(secondary, secondary80)
48FLUID_COLOR_TOKEN(secondaryContainer, secondary30)
49FLUID_COLOR_TOKEN(secondaryFixed, secondary90)
50FLUID_COLOR_TOKEN(secondaryFixedDim, secondary80)
51FLUID_COLOR_TOKEN(surface, neutral6)
52FLUID_COLOR_TOKEN(surfaceBright, neutral24)
53FLUID_COLOR_TOKEN(surfaceContainer, neutral12)
54FLUID_COLOR_TOKEN(surfaceContainerHigh, neutral17)
55FLUID_COLOR_TOKEN(surfaceContainerHighest, neutral22)
56FLUID_COLOR_TOKEN(surfaceContainerLow, neutral10)
57FLUID_COLOR_TOKEN(surfaceContainerLowest, neutral4)
58FLUID_COLOR_TOKEN(surfaceDim, neutral6)
59FLUID_COLOR_TOKEN(surfaceTint, primary80)
60FLUID_COLOR_TOKEN(surfaceVariant, neutralVariant30)
61FLUID_COLOR_TOKEN(tertiary, tertiary80)
62FLUID_COLOR_TOKEN(tertiaryContainer, tertiary30)
63FLUID_COLOR_TOKEN(tertiaryFixed, tertiary90)
64FLUID_COLOR_TOKEN(tertiaryFixedDim, tertiary80)
65
66#undef FLUID_COLOR_TOKEN
67
68} // namespace Fluid
#define FLUID_COLOR_TOKEN(name, paletteName)
Definition colordark.cpp:11