Browse Source

set a default color for button component

Odilitime 5 years ago
parent
commit
abdbb0887c
  1. 2
      src/graphics/elements/BUTTONElement.cpp

2
src/graphics/elements/BUTTONElement.cpp

@ -19,7 +19,7 @@ std::unique_ptr<Component> BUTTONElement::renderer(const ElementRenderRequest &r @@ -19,7 +19,7 @@ std::unique_ptr<Component> BUTTONElement::renderer(const ElementRenderRequest &r
if (tagNode) {
//std::cout << "Creating submit" << std::endl;
std::unique_ptr<ButtonComponent> butComponent = std::make_unique<ButtonComponent>(0, 0, 62.0f, 13.0f, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight);
std::unique_ptr<ButtonComponent> butComponent = std::make_unique<ButtonComponent>(0, 0, 62.0f, 13.0f, 0xA0A0A0FF, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight);
butComponent->value = "Button";
butComponent->name = "button";
butComponent->onClick=[tagNode, request]() {

Loading…
Cancel
Save