mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibGUI: Use new DialogButton for consistency
This commit is contained in:
parent
4c84e64b2a
commit
992ff4bd63
8 changed files with 18 additions and 34 deletions
|
@ -79,8 +79,7 @@ AboutDialog::AboutDialog(StringView name, Gfx::Bitmap const* icon, Window* paren
|
|||
button_container.set_fixed_height(22);
|
||||
button_container.set_layout<HorizontalBoxLayout>();
|
||||
button_container.layout()->add_spacer();
|
||||
auto& ok_button = button_container.add<Button>("OK");
|
||||
ok_button.set_fixed_width(80);
|
||||
auto& ok_button = button_container.add<DialogButton>("OK");
|
||||
ok_button.on_click = [this](auto) {
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue