From ff35f62d33ad7084927c5c74f6ce3bc8fc8c0ffd Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 25 Sep 2026 17:56:37 +0300 Subject: #6151 set Remember username and password check boxes to checked after filling the fields --- indra/newview/app_settings/settings.xml | 22 ++++++++++++++++++++++ indra/newview/llfloaterjoin.cpp | 10 +++++++--- indra/newview/llpanellogin.cpp | 5 +++++ .../newview/skins/default/xui/en/floater_join.xml | 2 ++ 4 files changed, 36 insertions(+), 3 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 19310ea32f..323ccdce46 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -3808,6 +3808,28 @@ Value 0 + JoinFloaterOverlayOpacity + + Comment + Opacity of the screen darkening overlay behind the Join floater + Persist + 1 + Type + F32 + Value + 0.8 + + JoinFloaterTestSLapp + + Comment + For testing only: Show links in the Join floater that trigger its close/join SLapps. + Persist + 1 + Type + Boolean + Value + 0 + JoinURL Comment diff --git a/indra/newview/llfloaterjoin.cpp b/indra/newview/llfloaterjoin.cpp index 3222643635..0c77c4cdfa 100644 --- a/indra/newview/llfloaterjoin.cpp +++ b/indra/newview/llfloaterjoin.cpp @@ -35,8 +35,6 @@ #include "llui.h" #include "llviewercontrol.h" -static const F32 OVERLAY_OPACITY = 0.8f; - // support for secondlife:///app/floaterjoin/{ACTION}/... SLapps class LLFloaterJoinHandler : public LLCommandHandler { @@ -79,12 +77,14 @@ bool LLFloaterJoin::postBuild() void LLFloaterJoin::draw() { + static LLCachedControl overlay_opacity(gSavedSettings, "JoinFloaterOverlayOpacity"); + // darken everything behind the floater LLVector2 window_size = LLUI::getInstance()->getWindowSize(); LLRect screen_rect = calcScreenRect(); gl_rect_2d(-screen_rect.mLeft, ll_round(window_size.mV[VY]) - screen_rect.mBottom, ll_round(window_size.mV[VX]) - screen_rect.mLeft, -screen_rect.mBottom, - LLColor4(0.f, 0.f, 0.f, OVERLAY_OPACITY)); + LLColor4(0.f, 0.f, 0.f, llclamp((F32)overlay_opacity, 0.f, 1.f))); LLModalDialog::draw(); } @@ -105,4 +105,8 @@ void LLFloaterJoin::onOpen(const LLSD& key) } centerOnScreen(); + + static LLCachedControl show_test_slapp(gSavedSettings, "JoinFloaterTestSLapp"); + getChild("test_close_link")->setVisible(show_test_slapp); + getChild("test_join_link")->setVisible(show_test_slapp); } diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index d382ef2df5..77b09a610c 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -547,6 +547,11 @@ void LLPanelLogin::setCredentialFields(const std::string& username, const std::s sInstance->mPasswordLength = static_cast(password.length()); sInstance->mPasswordModified = true; sInstance->updateLoginButtons(); + + sInstance->getChild("remember_name")->setValue(true); + LLUICtrl* remember_password = sInstance->getChild("remember_password"); + remember_password->setValue(true); + remember_password->setEnabled(true); } //static diff --git a/indra/newview/skins/default/xui/en/floater_join.xml b/indra/newview/skins/default/xui/en/floater_join.xml index 45f48421f4..28c879f36e 100644 --- a/indra/newview/skins/default/xui/en/floater_join.xml +++ b/indra/newview/skins/default/xui/en/floater_join.xml @@ -37,6 +37,7 @@