summaryrefslogtreecommitdiff
path: root/indra/llui/lltabcontainer.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-27 19:05:23 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-27 22:38:15 +0200
commiteaa9b152bfe9b5da44f724ddce1a2ecc86dc61bf (patch)
tree55d78528f5560a5b73dd3a5e87b68a7dc04181f8 /indra/llui/lltabcontainer.cpp
parent9ec2aac56c0e1a60ad8dbf6549b8a3cf7efec570 (diff)
SL-307 Implemented ability to specify color and changed flashing color
Diffstat (limited to 'indra/llui/lltabcontainer.cpp')
-rw-r--r--indra/llui/lltabcontainer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp
index 2a221fc19c..750a3aff9c 100644
--- a/indra/llui/lltabcontainer.cpp
+++ b/indra/llui/lltabcontainer.cpp
@@ -260,6 +260,7 @@ LLTabContainer::LLTabContainer(const LLTabContainer::Params& p)
mCustomIconCtrlUsed(p.use_custom_icon_ctrl),
mOpenTabsOnDragAndDrop(p.open_tabs_on_drag_and_drop),
mTabIconCtrlPad(p.tab_icon_ctrl_pad),
+ mEnableTabsFlashing(p.enable_tabs_flashing),
mUseTabEllipses(p.use_ellipses)
{
static LLUICachedControl<S32> tabcntr_vert_tab_min_width ("UITabCntrVertTabMinWidth", 0);
@@ -1641,6 +1642,16 @@ void LLTabContainer::setTabPanelFlashing(LLPanel* child, BOOL state )
}
}
+void LLTabContainer::setTabPanelFlashing(LLPanel* child, BOOL state, LLUIColor color)
+{
+ LLTabTuple* tuple = getTabByPanel(child);
+ if (tuple)
+ {
+ tuple->mButton->setFlashColor(color);
+ tuple->mButton->setFlashing(state);
+ }
+}
+
void LLTabContainer::setTabImage(LLPanel* child, std::string image_name, const LLColor4& color)
{
LLTabTuple* tuple = getTabByPanel(child);