1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

LibGUI: Use new DialogButton for consistency

This commit is contained in:
FrHun 2022-06-10 23:03:11 +02:00 committed by Linus Groh
parent 4c84e64b2a
commit 992ff4bd63
8 changed files with 18 additions and 34 deletions

View file

@ -46,14 +46,12 @@ WizardDialog::WizardDialog(Window* parent_window)
nav_container_widget.layout()->set_spacing(0);
nav_container_widget.layout()->add_spacer();
m_back_button = nav_container_widget.add<Button>("< Back");
m_back_button->set_fixed_width(75);
m_back_button = nav_container_widget.add<DialogButton>("< Back");
m_back_button->on_click = [&](auto) {
pop_page();
};
m_next_button = nav_container_widget.add<Button>("Next >");
m_next_button->set_fixed_width(75);
m_next_button = nav_container_widget.add<DialogButton>("Next >");
m_next_button->on_click = [&](auto) {
VERIFY(has_pages());
@ -70,8 +68,7 @@ WizardDialog::WizardDialog(Window* parent_window)
auto& button_spacer = nav_container_widget.add<Widget>();
button_spacer.set_fixed_width(10);
m_cancel_button = nav_container_widget.add<Button>("Cancel");
m_cancel_button->set_fixed_width(75);
m_cancel_button = nav_container_widget.add<DialogButton>("Cancel");
m_cancel_button->on_click = [&](auto) {
handle_cancel();
};