Add an UDL for combined hex RGB colors (#203)

In order to allow using the literal on its own it has been put into the
inline namespace `literals`.
This commit is contained in:
Henrik Gaßmann
2021-09-14 14:22:30 +02:00
committed by GitHub
parent b5c3b17b3f
commit 7d4452f45c
3 changed files with 27 additions and 3 deletions

View File

@@ -28,7 +28,8 @@ int main(int argc, const char* argv[]) {
color(Color::Red, text("Red")),
color(Color::RedLight, text("RedLight")),
color(Color::Yellow, text("Yellow")),
color(Color::YellowLight, text("YellowLight"))
color(Color::YellowLight, text("YellowLight")),
color(0x66ff66_rgb, text("Phosphor"))
),
vbox(
bgcolor(Color::Default, text("Default")),
@@ -47,7 +48,8 @@ int main(int argc, const char* argv[]) {
bgcolor(Color::Red, text("Red")),
bgcolor(Color::RedLight, text("RedLight")),
bgcolor(Color::Yellow, text("Yellow")),
bgcolor(Color::YellowLight, text("YellowLight"))
bgcolor(Color::YellowLight, text("YellowLight")),
bgcolor(0x66ff66_rgb, text("Phosphor"))
),
filler()
);