From e7f2fbf2a49aa4bea22889db545f08ff6d0b4921 Mon Sep 17 00:00:00 2001 From: Alexander Gavriliuk Date: Fri, 7 Jul 2023 01:08:01 +0200 Subject: SL-19951 Highlight the selected tab by colored icon --- indra/newview/llfloateremojipicker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llfloateremojipicker.cpp b/indra/newview/llfloateremojipicker.cpp index 9194a49c45..02982bf63a 100644 --- a/indra/newview/llfloateremojipicker.cpp +++ b/indra/newview/llfloateremojipicker.cpp @@ -292,6 +292,7 @@ void LLFloaterEmojiPicker::fillGroups() if (mGroupButtons.size() == sSelectedGroupIndex) { button->setToggleState(TRUE); + button->setUseFontColor(TRUE); } mGroupButtons.push_back(button); @@ -479,9 +480,11 @@ void LLFloaterEmojiPicker::onGroupButtonClick(LLUICtrl* ctrl) if (it == mGroupButtons.end()) return; + mGroupButtons[sSelectedGroupIndex]->setUseFontColor(FALSE); mGroupButtons[sSelectedGroupIndex]->setToggleState(FALSE); sSelectedGroupIndex = it - mGroupButtons.begin(); mGroupButtons[sSelectedGroupIndex]->setToggleState(TRUE); + mGroupButtons[sSelectedGroupIndex]->setUseFontColor(TRUE); LLRect rect = mBadge->getRect(); rect.mLeft = button->getRect().mLeft; @@ -538,7 +541,7 @@ void LLFloaterEmojiPicker::onGroupButtonMouseLeave(LLUICtrl* ctrl) { if (LLButton* button = dynamic_cast(ctrl)) { - button->setUseFontColor(FALSE); + button->setUseFontColor(button->getToggleState()); } } -- cgit v1.2.3