19 auto basic_color_display =
21 text(
"16 color palette:"),
66 auto palette_256_color_display =
text(
"256 colors palette:");
70 for (
auto& column : info_columns) {
72 for (
auto& it : column) {
73 column_elements.push_back(
76 columns.push_back(
hbox(std::move(column_elements)));
78 palette_256_color_display =
vbox({
79 palette_256_color_display,
86 auto true_color_display =
text(
"TrueColors: 24bits:");
88 const int max_value = 255;
89 const int value_increment = 8;
90 const int hue_increment = 6;
91 int saturation = max_value;
93 for (
int value = 0; value < max_value; value += 2 * value_increment) {
95 for (
int hue = 0; hue < max_value; hue += hue_increment) {
101 array.push_back(
hbox(std::move(line)));
103 true_color_display =
vbox({
106 vbox(std::move(array)),
112 Terminal::ColorSupport() >= Terminal::Color::Palette16
113 ?
text(
" 16 color palette support : Yes")
114 :
text(
" 16 color palette support : No"),
115 Terminal::ColorSupport() >= Terminal::Color::Palette256
116 ?
text(
"256 color palette support : Yes")
117 :
text(
"256 color palette support : No"),
118 Terminal::ColorSupport() >= Terminal::Color::TrueColor
119 ?
text(
" True color support : Yes")
120 :
text(
" True color support : No"),
127 palette_256_color_display,
134 auto screen =
Screen::Create(Dimension::Full(), Dimension::Fit(document));