Browse Source

LoginServer: Use the verb "log in" for window title & submit button

Andreas Kling 3 years ago
parent
commit
b78a69f7dd

+ 3 - 3
Userland/Services/LoginServer/LoginWindow.cpp

@@ -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();
     };

+ 2 - 2
Userland/Services/LoginServer/LoginWindow.gml

@@ -29,8 +29,8 @@
             @GUI::Widget
 
             @GUI::Button {
-                name: "ok"
-                text: "Ok"
+                name: "log_in"
+                text: "Log in"
                 fixed_width: 60
             }
         }

+ 1 - 1
Userland/Services/LoginServer/LoginWindow.h

@@ -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;
 };