Add option to have button without border. (#101)

This commit is contained in:
Arthur Sonzogni
2021-05-18 17:49:53 +02:00
committed by GitHub
parent ab9d6feaa5
commit 7b88656e25
4 changed files with 17 additions and 9 deletions

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.
auto buttons = Container::Horizontal({
Button("Decrease", [&] { value--; }),
Button("Increase", [&] { value++; }),
Button("[Decrease]", [&] { value--; }, false),
Button("[Increase]", [&] { value++; }, false),
});
// Modify the way to render them on screen: