mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
LoginServer: Use the verb "log in" for window title & submit button
This commit is contained in:
parent
f4ea3b0168
commit
b78a69f7dd
3 changed files with 6 additions and 6 deletions
|
@ -28,8 +28,8 @@ LoginWindow::LoginWindow(GUI::Window* parent)
|
||||||
m_username->set_focus(true);
|
m_username->set_focus(true);
|
||||||
m_password = *widget.find_descendant_of_type_named<GUI::PasswordBox>("password");
|
m_password = *widget.find_descendant_of_type_named<GUI::PasswordBox>("password");
|
||||||
|
|
||||||
m_ok_button = *widget.find_descendant_of_type_named<GUI::Button>("ok");
|
m_log_in_button = *widget.find_descendant_of_type_named<GUI::Button>("log_in");
|
||||||
m_ok_button->on_click = [&](auto) {
|
m_log_in_button->on_click = [&](auto) {
|
||||||
if (on_submit)
|
if (on_submit)
|
||||||
on_submit();
|
on_submit();
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
@GUI::Widget
|
@GUI::Widget
|
||||||
|
|
||||||
@GUI::Button {
|
@GUI::Button {
|
||||||
name: "ok"
|
name: "log_in"
|
||||||
text: "Ok"
|
text: "Log in"
|
||||||
fixed_width: 60
|
fixed_width: 60
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,5 +31,5 @@ private:
|
||||||
RefPtr<GUI::ImageWidget> m_banner;
|
RefPtr<GUI::ImageWidget> m_banner;
|
||||||
RefPtr<GUI::TextBox> m_username;
|
RefPtr<GUI::TextBox> m_username;
|
||||||
RefPtr<GUI::PasswordBox> m_password;
|
RefPtr<GUI::PasswordBox> m_password;
|
||||||
RefPtr<GUI::Button> m_ok_button;
|
RefPtr<GUI::Button> m_log_in_button;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue