mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 02:05:08 +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
|
@ -82,7 +82,7 @@ void InputBox::build(InputType input_type)
|
|||
button_container_inner.layout()->set_margins({ 4, 0, 4, 4 });
|
||||
button_container_inner.layout()->add_spacer();
|
||||
|
||||
m_ok_button = button_container_inner.add<Button>();
|
||||
m_ok_button = button_container_inner.add<DialogButton>();
|
||||
m_ok_button->set_text("OK");
|
||||
m_ok_button->on_click = [this](auto) {
|
||||
dbgln("GUI::InputBox: OK button clicked");
|
||||
|
@ -91,7 +91,7 @@ void InputBox::build(InputType input_type)
|
|||
};
|
||||
m_ok_button->set_default(true);
|
||||
|
||||
m_cancel_button = button_container_inner.add<Button>();
|
||||
m_cancel_button = button_container_inner.add<DialogButton>();
|
||||
m_cancel_button->set_text("Cancel");
|
||||
m_cancel_button->on_click = [this](auto) {
|
||||
dbgln("GUI::InputBox: Cancel button clicked");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue