MAINT-2902 FIXED Browser secure session indicator should be prominent

master
maksymsproductengine 2013-08-02 20:12:55 +03:00
parent 1015adf322
commit aec50ffdad
4 changed files with 13 additions and 3 deletions

View File

@ -534,6 +534,13 @@ void LLComboBox::createLineEditor(const LLComboBox::Params& p)
}
}
void LLComboBox::setLeftTextPadding(S32 pad)
{
S32 left_pad, right_pad;
mTextEntry->getTextPadding(&left_pad, &right_pad);
mTextEntry->setTextPadding(pad, right_pad);
}
void* LLComboBox::getCurrentUserdata()
{
LLScrollListItem* item = mList->getFirstSelected();

View File

@ -190,6 +190,8 @@ public:
virtual BOOL operateOnAll(EOperation op);
//========================================================================
void setLeftTextPadding(S32 pad);
void* getCurrentUserdata();

View File

@ -350,10 +350,12 @@ void LLFloaterWebContent::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent
if(test_prefix == prefix)
{
mSecureLockIcon->setVisible(true);
mAddressCombo->setLeftTextPadding(22);
}
else
{
mSecureLockIcon->setVisible(false);
mAddressCombo->setLeftTextPadding(2);
}
}
else if(event == MEDIA_EVENT_CLOSE_REQUEST)

View File

@ -125,11 +125,10 @@
<icon
name="media_secure_lock_flag"
height="16"
follows="top|right"
image_name="Lock2"
layout="topleft"
left_delta="620"
top_delta="2"
left_delta="4"
top="2"
visible="false"
tool_tip="Secured Browsing"
width="16" />