From 47b3d937562c01fa290fafe8134d28b54db03cee Mon Sep 17 00:00:00 2001 From: Vedant Date: Sat, 9 Sep 2023 00:22:31 +0530 Subject: [PATCH] Clang-formatting fix Signed-off-by: Vedant --- include/quick-ftxui.hpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/quick-ftxui.hpp b/include/quick-ftxui.hpp index f5fa5cf..48ee269 100644 --- a/include/quick-ftxui.hpp +++ b/include/quick-ftxui.hpp @@ -438,10 +438,14 @@ struct node_printer : boost::static_visitor<> { It != quick_ftxui_ast::numbers.end()) { ftxui::SliderOption slider_opt; slider_opt.value = (int *)(&It->second); - slider_opt.min = text.min, slider_opt.max = text.max, slider_opt.increment = text.increment; - slider_opt.color_active = resolveColour(text.color), slider_opt.color_inactive = ftxui::Color::GrayDark; + slider_opt.min = text.min, slider_opt.max = text.max, + slider_opt.increment = text.increment; + slider_opt.color_active = resolveColour(text.color), + slider_opt.color_inactive = ftxui::Color::GrayDark; auto sldr = ftxui::Slider(slider_opt); - auto with_label = ftxui::Renderer(sldr, [sldr, &text]{ return ftxui::hbox({ftxui::text(text.label), sldr->Render()}); }); + auto with_label = ftxui::Renderer(sldr, [sldr, &text] { + return ftxui::hbox({ftxui::text(text.label), sldr->Render()}); + }); data->components.push_back(with_label); } else { throw std::runtime_error("Variable " + text.value + " not found"); @@ -676,9 +680,9 @@ struct parser input_comp %= qi::lit("Input") >> '{' >> quoted_string >> -(',' >> inputopt_kw) >> ',' >> identifier >> '}'; - slider_comp %= -(color_kw) >> qi::lit("Slider") >> '{' >> quoted_string >> ',' >> - identifier >> ',' >> qi::int_ >> ',' >> qi::int_ >> ',' >> - qi::int_ >> '}'; + slider_comp %= -(color_kw) >> qi::lit("Slider") >> '{' >> quoted_string >> + ',' >> identifier >> ',' >> qi::int_ >> ',' >> qi::int_ >> + ',' >> qi::int_ >> '}'; menu_comp %= qi::lit("Menu") >> '{' >> '[' >> +(quoted_string >> ',') >> ']' >> -(',' >> menuopt_kw) >> ',' >> identifier >> '}';