Back with clickable button.

This commit is contained in:
James Grogan 2022-11-16 17:00:55 +00:00
parent 3e53bd9e00
commit 70891ce7b4
20 changed files with 107 additions and 50 deletions

View file

@ -57,10 +57,11 @@ void MediaTool::initializeViews()
auto button = Button::Create();
button->setLabel("Click!");
button->setBounds(100, 200);
button->setBackgroundColor(Color(0, 0, 255, 0));
button->setBackgroundColor(Color(255, 0, 255, 1));
auto background_widget = Widget::Create();
background_widget->setBackgroundColor(Color(0, 255, 255, 0));
background_widget->setName("BackgroundWidget");
background_widget->setBackgroundColor(Color(0, 255, 255, 1));
auto horizontal_spacer = HorizontalSpacer::Create();
horizontal_spacer->addWidgetWithScale(std::move(button), 1);