From 8356cc1c4fd921cac46d9d98bdf80c7c8ae05b22 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Fri, 13 Jul 2012 12:38:26 -0400 Subject: Try reorganizing panel_login.xml per Leo's redesign. This includes replacing the small "Sign up" link with a "CREATE YOUR ACCOUNT: Start now" button, requiring a small tweak to the C++ code to Do The Right Thing when the button (vs. the link) is clicked. --- indra/newview/llpanellogin.cpp | 5 +- indra/newview/skins/default/xui/en/panel_login.xml | 171 ++++++++++++--------- 2 files changed, 104 insertions(+), 72 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index a7aa99dfde..e37155aeb6 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -175,8 +175,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, LLTextBox* forgot_password_text = getChild("forgot_password_text"); forgot_password_text->setClickedCallback(onClickForgotPassword, NULL); - LLTextBox* create_new_account_text = getChild("create_new_account_text"); - create_new_account_text->setClickedCallback(onClickNewAccount, NULL); + childSetAction("create_new_account_btn", onClickNewAccount, NULL); LLTextBox* need_help_text = getChild("login_help"); need_help_text->setClickedCallback(onClickHelp, NULL); @@ -1025,7 +1024,7 @@ void LLPanelLogin::updateLoginPanelLinks() // need to call through sInstance, as it's called from onSelectServer, which // is static. - sInstance->getChildView("create_new_account_text")->setVisible( system_grid); + sInstance->getChildView("create_new_account_btn")->setVisible( system_grid); sInstance->getChildView("forgot_password_text")->setVisible( system_grid); } diff --git a/indra/newview/skins/default/xui/en/panel_login.xml b/indra/newview/skins/default/xui/en/panel_login.xml index 994eb909e2..64ecdbf752 100644 --- a/indra/newview/skins/default/xui/en/panel_login.xml +++ b/indra/newview/skins/default/xui/en/panel_login.xml @@ -42,16 +42,28 @@ auto_resize="false" follows="left|bottom" name="login" layout="topleft" -width="705" -min_width="705" +width="865" +min_width="865" height="80"> +LOG IN + + Username: @@ -66,19 +78,21 @@ tool_tip="The username you chose when you registered, like bobsmith12 or Steller top_pad="0" name="username_combo" width="178"> + + +top="35" +left="175" +width="150"> Password: - -