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