Modify signature of Container::Tab(...) (#92)

Take selector at the end to get more pleasing results with clang-format.
This commit is contained in:
Arthur Sonzogni
2021-05-15 02:32:42 +02:00
committed by GitHub
parent 2723616dc8
commit 7daeac25c0
7 changed files with 35 additions and 29 deletions

View File

@@ -337,13 +337,15 @@ int main(int argc, const char* argv[]) {
L"htop", L"color", L"spinner", L"gauge", L"compiler",
};
auto tab_selection = Toggle(&tab_entries, &tab_index);
auto tab_content = Container::Tab(&tab_index, {
htop,
color_tab_renderer,
spinner_tab_renderer,
gauge_component,
compiler_renderer,
});
auto tab_content = Container::Tab(
{
htop,
color_tab_renderer,
spinner_tab_renderer,
gauge_component,
compiler_renderer,
},
&tab_index);
auto main_container = Container::Vertical({
tab_selection,