20 auto basic_color_display =
22 text(
"16 color palette:"),
29 color(Color::GrayLight,
text(
"GrayLight")),
32 color(Color::BlueLight,
text(
"BlueLight")),
34 color(Color::CyanLight,
text(
"CyanLight")),
36 color(Color::GreenLight,
text(
"GreenLight")),
38 color(Color::MagentaLight,
text(
"MagentaLight")),
42 color(Color::YellowLight,
text(
"YellowLight"))
67 auto palette_256_color_display =
text(
"256 colors palette:");
71 for (
auto& column : info_columns) {
73 for (
auto& it : column) {
74 column_elements.push_back(
77 columns.push_back(
hbox(std::move(column_elements)));
79 palette_256_color_display =
vbox({
80 palette_256_color_display,
87 auto true_color_display =
text(
"TrueColors: 24bits:");
89 const int max_value = 255;
90 const int value_increment = 8;
91 const int hue_increment = 6;
92 int saturation = max_value;
94 for (
int value = 0; value < max_value; value += 2 * value_increment) {
96 for (
int hue = 0; hue < max_value; hue += hue_increment) {
99 |
color(Color::HSV(hue, saturation, value))
100 |
bgcolor(Color::HSV(hue, saturation, value + value_increment)));
102 array.push_back(
hbox(std::move(line)));
104 true_color_display =
vbox({
107 vbox(std::move(array)),
114 ?
text(
" 16 color palette support : Yes")
115 :
text(
" 16 color palette support : No"),
117 ?
text(
"256 color palette support : Yes")
118 :
text(
"256 color palette support : No"),
120 ?
text(
" True color support : Yes")
121 :
text(
" True color support : No"),
128 palette_256_color_display,