Fix button example. (#102)

This commit is contained in:
Arthur Sonzogni 2021-05-18 17:53:58 +02:00 committed by GitHub
parent 7b88656e25
commit 84debba10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ int main(int argc, const char* argv[]) {
// The tree of components. This defines how to navigate using the keyboard. // The tree of components. This defines how to navigate using the keyboard.
auto buttons = Container::Horizontal({ auto buttons = Container::Horizontal({
Button("[Decrease]", [&] { value--; }, false), Button("Decrease", [&] { value--; }),
Button("[Increase]", [&] { value++; }, false), Button("Increase", [&] { value++; }),
}); });
// Modify the way to render them on screen: // Modify the way to render them on screen: