start updating macos stuff

This commit is contained in:
Mars 2025-02-18 23:57:45 -05:00
parent a02ffbed47
commit 46074a94a2
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
4 changed files with 35 additions and 43 deletions

View file

@ -123,13 +123,11 @@ namespace {
using namespace ftxui;
fn CreateColorCircles() -> Element {
Elements circles;
Elements circles(16);
for (int i = 0; i < 16; ++i)
circles.push_back(hbox({
text("") | bold | color(Color::Palette256(i)),
text(" "),
}));
std::generate_n(circles.begin(), 16, [colorIndex = 0]() mutable {
return hbox({ text("") | bold | color(Color::Palette256(colorIndex++)), text(" ") });
});
return hbox(circles);
}