mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Modify signature of Container::Tab(...) (#92)
Take selector at the end to get more pleasing results with clang-format.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user