diff options
Diffstat (limited to 'indra/newview/llfloaterpathfindinglinksets.cpp')
-rw-r--r-- | indra/newview/llfloaterpathfindinglinksets.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llfloaterpathfindinglinksets.cpp b/indra/newview/llfloaterpathfindinglinksets.cpp index c2df53a31d..9701002d7d 100644 --- a/indra/newview/llfloaterpathfindinglinksets.cpp +++ b/indra/newview/llfloaterpathfindinglinksets.cpp @@ -864,7 +864,8 @@ bool LLFloaterPathfindingLinksets::isShowCannotBeVolumeWarning(LLPathfindingLink void LLFloaterPathfindingLinksets::updateStatusMessage()
{
- static const LLColor4 warningColor = LLUIColorTable::instance().getColor("DrYellow");
+ static const LLColor4 errorColor = LLUIColorTable::instance().getColor("PathfindingErrorColor");
+ static const LLColor4 warningColor = LLUIColorTable::instance().getColor("PathfindingWarningColor");
std::string statusText("");
LLStyle::Params styleParams;
@@ -873,20 +874,23 @@ void LLFloaterPathfindingLinksets::updateStatusMessage() {
case kMessagingUnknown:
statusText = getString("linksets_messaging_initial");
+ styleParams.color = errorColor;
break;
case kMessagingGetRequestSent :
statusText = getString("linksets_messaging_get_inprogress");
+ styleParams.color = warningColor;
break;
case kMessagingGetError :
statusText = getString("linksets_messaging_get_error");
- styleParams.color = warningColor;
+ styleParams.color = errorColor;
break;
case kMessagingSetRequestSent :
statusText = getString("linksets_messaging_set_inprogress");
+ styleParams.color = warningColor;
break;
case kMessagingSetError :
statusText = getString("linksets_messaging_set_error");
- styleParams.color = warningColor;
+ styleParams.color = errorColor;
break;
case kMessagingComplete :
if (mLinksetsScrollList->isEmpty())
@@ -913,10 +917,11 @@ void LLFloaterPathfindingLinksets::updateStatusMessage() break;
case kMessagingNotEnabled :
statusText = getString("linksets_messaging_not_enabled");
- styleParams.color = warningColor;
+ styleParams.color = errorColor;
break;
default:
statusText = getString("linksets_messaging_initial");
+ styleParams.color = errorColor;
llassert(0);
break;
}
|