mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +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
|
@ -12,7 +12,7 @@
|
|||
LoginWindow::LoginWindow(GUI::Window* parent)
|
||||
: GUI::Window(parent)
|
||||
{
|
||||
set_title("Login to SerenityOS");
|
||||
set_title("Log in to SerenityOS");
|
||||
resize(413, 170);
|
||||
center_on_screen();
|
||||
set_resizable(false);
|
||||
|
@ -28,8 +28,8 @@ LoginWindow::LoginWindow(GUI::Window* parent)
|
|||
m_username->set_focus(true);
|
||||
m_password = *widget.find_descendant_of_type_named<GUI::PasswordBox>("password");
|
||||
|
||||
m_ok_button = *widget.find_descendant_of_type_named<GUI::Button>("ok");
|
||||
m_ok_button->on_click = [&](auto) {
|
||||
m_log_in_button = *widget.find_descendant_of_type_named<GUI::Button>("log_in");
|
||||
m_log_in_button->on_click = [&](auto) {
|
||||
if (on_submit)
|
||||
on_submit();
|
||||
};
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
@GUI::Widget
|
||||
|
||||
@GUI::Button {
|
||||
name: "ok"
|
||||
text: "Ok"
|
||||
name: "log_in"
|
||||
text: "Log in"
|
||||
fixed_width: 60
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,5 +31,5 @@ private:
|
|||
RefPtr<GUI::ImageWidget> m_banner;
|
||||
RefPtr<GUI::TextBox> m_username;
|
||||
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