diff options
| author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-07-07 01:08:01 +0200 | 
|---|---|---|
| committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-07-07 01:08:01 +0200 | 
| commit | e7f2fbf2a49aa4bea22889db545f08ff6d0b4921 (patch) | |
| tree | ac111805e8db37cf71d09ccf0820c1f43ede7e0a | |
| parent | 9793308a600c1e1ce35ec727ed6341e7668848ea (diff) | |
SL-19951 Highlight the selected tab by colored icon
| -rw-r--r-- | indra/newview/llfloateremojipicker.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| 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<LLButton*>(ctrl))      { -        button->setUseFontColor(FALSE); +        button->setUseFontColor(button->getToggleState());      }  } | 
