Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
palette.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 "palette.h"
5
6namespace Fluid {
7
8// Values from PaletteTokens.kt, VERSION: v0_210, in the pinned AndroidX directory:
9// https://android.googlesource.com/platform/frameworks/support/+/5ba2cdd61be7b6945db999b238d14f3c626136fb/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/tokens/
10#define FLUID_PALETTE_COLOR(name, red, green, blue) \
11 QColor PaletteTokens::name() const \
12 { \
13 return QColor(red, green, blue); \
14 }
15
16FLUID_PALETTE_COLOR(black, 0, 0, 0)
17FLUID_PALETTE_COLOR(error0, 0, 0, 0)
18FLUID_PALETTE_COLOR(error10, 65, 14, 11)
19FLUID_PALETTE_COLOR(error100, 255, 255, 255)
20FLUID_PALETTE_COLOR(error20, 96, 20, 16)
21FLUID_PALETTE_COLOR(error30, 140, 29, 24)
22FLUID_PALETTE_COLOR(error40, 179, 38, 30)
23FLUID_PALETTE_COLOR(error50, 220, 54, 46)
24FLUID_PALETTE_COLOR(error60, 228, 105, 98)
25FLUID_PALETTE_COLOR(error70, 236, 146, 142)
26FLUID_PALETTE_COLOR(error80, 242, 184, 181)
27FLUID_PALETTE_COLOR(error90, 249, 222, 220)
28FLUID_PALETTE_COLOR(error95, 252, 238, 238)
29FLUID_PALETTE_COLOR(error99, 255, 251, 249)
30FLUID_PALETTE_COLOR(neutral0, 0, 0, 0)
31FLUID_PALETTE_COLOR(neutral10, 29, 27, 32)
32FLUID_PALETTE_COLOR(neutral100, 255, 255, 255)
33FLUID_PALETTE_COLOR(neutral12, 33, 31, 38)
34FLUID_PALETTE_COLOR(neutral17, 43, 41, 48)
35FLUID_PALETTE_COLOR(neutral20, 50, 47, 53)
36FLUID_PALETTE_COLOR(neutral22, 54, 52, 59)
37FLUID_PALETTE_COLOR(neutral24, 59, 56, 62)
38FLUID_PALETTE_COLOR(neutral30, 72, 70, 76)
39FLUID_PALETTE_COLOR(neutral4, 15, 13, 19)
40FLUID_PALETTE_COLOR(neutral40, 96, 93, 100)
41FLUID_PALETTE_COLOR(neutral50, 121, 118, 125)
42FLUID_PALETTE_COLOR(neutral6, 20, 18, 24)
43FLUID_PALETTE_COLOR(neutral60, 147, 143, 150)
44FLUID_PALETTE_COLOR(neutral70, 174, 169, 177)
45FLUID_PALETTE_COLOR(neutral80, 202, 197, 205)
46FLUID_PALETTE_COLOR(neutral87, 222, 216, 225)
47FLUID_PALETTE_COLOR(neutral90, 230, 224, 233)
48FLUID_PALETTE_COLOR(neutral92, 236, 230, 240)
49FLUID_PALETTE_COLOR(neutral94, 243, 237, 247)
50FLUID_PALETTE_COLOR(neutral95, 245, 239, 247)
51FLUID_PALETTE_COLOR(neutral96, 247, 242, 250)
52FLUID_PALETTE_COLOR(neutral98, 254, 247, 255)
53FLUID_PALETTE_COLOR(neutral99, 255, 251, 255)
54FLUID_PALETTE_COLOR(neutralVariant0, 0, 0, 0)
55FLUID_PALETTE_COLOR(neutralVariant10, 29, 26, 34)
56FLUID_PALETTE_COLOR(neutralVariant100, 255, 255, 255)
57FLUID_PALETTE_COLOR(neutralVariant20, 50, 47, 55)
58FLUID_PALETTE_COLOR(neutralVariant30, 73, 69, 79)
59FLUID_PALETTE_COLOR(neutralVariant40, 96, 93, 102)
60FLUID_PALETTE_COLOR(neutralVariant50, 121, 116, 126)
61FLUID_PALETTE_COLOR(neutralVariant60, 147, 143, 153)
62FLUID_PALETTE_COLOR(neutralVariant70, 174, 169, 180)
63FLUID_PALETTE_COLOR(neutralVariant80, 202, 196, 208)
64FLUID_PALETTE_COLOR(neutralVariant90, 231, 224, 236)
65FLUID_PALETTE_COLOR(neutralVariant95, 245, 238, 250)
66FLUID_PALETTE_COLOR(neutralVariant99, 255, 251, 254)
67FLUID_PALETTE_COLOR(primary0, 0, 0, 0)
68FLUID_PALETTE_COLOR(primary10, 33, 0, 93)
69FLUID_PALETTE_COLOR(primary100, 255, 255, 255)
70FLUID_PALETTE_COLOR(primary20, 56, 30, 114)
71FLUID_PALETTE_COLOR(primary30, 79, 55, 139)
72FLUID_PALETTE_COLOR(primary40, 103, 80, 164)
73FLUID_PALETTE_COLOR(primary50, 127, 103, 190)
74FLUID_PALETTE_COLOR(primary60, 154, 130, 219)
75FLUID_PALETTE_COLOR(primary70, 182, 157, 248)
76FLUID_PALETTE_COLOR(primary80, 208, 188, 255)
77FLUID_PALETTE_COLOR(primary90, 234, 221, 255)
78FLUID_PALETTE_COLOR(primary95, 246, 237, 255)
79FLUID_PALETTE_COLOR(primary99, 255, 251, 254)
80FLUID_PALETTE_COLOR(secondary0, 0, 0, 0)
81FLUID_PALETTE_COLOR(secondary10, 29, 25, 43)
82FLUID_PALETTE_COLOR(secondary100, 255, 255, 255)
83FLUID_PALETTE_COLOR(secondary20, 51, 45, 65)
84FLUID_PALETTE_COLOR(secondary30, 74, 68, 88)
85FLUID_PALETTE_COLOR(secondary40, 98, 91, 113)
86FLUID_PALETTE_COLOR(secondary50, 122, 114, 137)
87FLUID_PALETTE_COLOR(secondary60, 149, 141, 165)
88FLUID_PALETTE_COLOR(secondary70, 176, 167, 192)
89FLUID_PALETTE_COLOR(secondary80, 204, 194, 220)
90FLUID_PALETTE_COLOR(secondary90, 232, 222, 248)
91FLUID_PALETTE_COLOR(secondary95, 246, 237, 255)
92FLUID_PALETTE_COLOR(secondary99, 255, 251, 254)
93FLUID_PALETTE_COLOR(tertiary0, 0, 0, 0)
94FLUID_PALETTE_COLOR(tertiary10, 49, 17, 29)
95FLUID_PALETTE_COLOR(tertiary100, 255, 255, 255)
96FLUID_PALETTE_COLOR(tertiary20, 73, 37, 50)
97FLUID_PALETTE_COLOR(tertiary30, 99, 59, 72)
98FLUID_PALETTE_COLOR(tertiary40, 125, 82, 96)
99FLUID_PALETTE_COLOR(tertiary50, 152, 105, 119)
100FLUID_PALETTE_COLOR(tertiary60, 181, 131, 146)
101FLUID_PALETTE_COLOR(tertiary70, 210, 157, 172)
102FLUID_PALETTE_COLOR(tertiary80, 239, 184, 200)
103FLUID_PALETTE_COLOR(tertiary90, 255, 216, 228)
104FLUID_PALETTE_COLOR(tertiary95, 255, 236, 241)
105FLUID_PALETTE_COLOR(tertiary99, 255, 251, 250)
106FLUID_PALETTE_COLOR(white, 255, 255, 255)
107
108#undef FLUID_PALETTE_COLOR
109
110} // namespace Fluid
#define FLUID_PALETTE_COLOR(name, red, green, blue)
Definition palette.cpp:10