Use vscroll_indicator in examples.

This commit is contained in:
ArthurSonzogni
2021-09-26 17:30:41 +02:00
committed by Arthur Sonzogni
parent 535974d291
commit 84287eb217
5 changed files with 35 additions and 27 deletions

View File

@@ -18,7 +18,8 @@ int main(int argc, const char* argv[]) {
entries.push_back("Entry " + std::to_string(i));
auto radiobox = Menu(&entries, &selected);
auto renderer = Renderer(radiobox, [&] {
return radiobox->Render() | frame | size(HEIGHT, LESS_THAN, 10) | border;
return radiobox->Render() | vscroll_indicator | frame |
size(HEIGHT, LESS_THAN, 10) | border;
});
auto screen = ScreenInteractive::FitComponent();