EXT-1742 Navbar should have a dropshadow that covers the sidepanel EXT-1563 I18N: Alt-arrow instructions in tab tooltips wont honor their translation

reviewed by james
meow-7.2.2
Leyla Farazha 2009-10-23 14:10:42 -07:00
parent f58857824e
commit 7a7bc8d33b
2 changed files with 12 additions and 2 deletions

View File

@ -44,6 +44,7 @@
#include "lluictrlfactory.h"
#include "llrender.h"
#include "llfloater.h"
#include "lltrans.h"
//----------------------------------------------------------------------------
@ -940,8 +941,8 @@ void LLTabContainer::addTabPanel(const TabPanelParams& panel)
else
{
std::string tooltip = trimmed_label;
tooltip += "\nAlt-Left arrow for previous tab";
tooltip += "\nAlt-Right arrow for next tab";
tooltip += "\n" + LLTrans::getString("TooltipAltLeft");
tooltip += "\n" + LLTrans::getString("TooltipAltRight");
LLButton::Params p;
p.name(std::string(child->getName()) + " tab");

View File

@ -272,6 +272,15 @@ void LLNavigationBar::draw()
onTeleportHistoryChanged();
mPurgeTPHistoryItems = false;
}
if (isBackgroundVisible())
{
static LLUICachedControl<S32> drop_shadow_floater ("DropShadowFloater", 0);
static LLUIColor color_drop_shadow = LLUIColorTable::instance().getColor("ColorDropShadow");
gl_drop_shadow(0, getRect().getHeight(), getRect().getWidth(), 0,
color_drop_shadow, drop_shadow_floater );
}
LLPanel::draw();
}