diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 333721bbb8..6e00d86103 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -20844,5 +20844,16 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
0
+ FSColorIMsDistinctly
+
diff --git a/indra/newview/fsconsoleutils.cpp b/indra/newview/fsconsoleutils.cpp
index bde57db6a1..4257829b38 100644
--- a/indra/newview/fsconsoleutils.cpp
+++ b/indra/newview/fsconsoleutils.cpp
@@ -247,6 +247,7 @@ void FSConsoleUtils::onProccessInstantMessageNameLookup(const LLUUID& agent_id,
static LLCachedControl nameTagShowUsernames(gSavedSettings, "NameTagShowUsernames");
static LLCachedControl useDisplayNames(gSavedSettings, "UseDisplayNames");
+ static LLCachedControl im_coloring(gSavedSettings, "FSColorIMsDistinctly");
if (nameTagShowUsernames && useDisplayNames)
{
senderName = av_name.getCompleteName();
@@ -271,7 +272,7 @@ void FSConsoleUtils::onProccessInstantMessageNameLookup(const LLUUID& agent_id,
senderName = "[" + group + "] " + senderName;
}
- LLColor4 textColor = LLUIColorTable::instance().getColor("AgentIMColor");
+ LLColor4 textColor = LLUIColorTable::instance().getColor( im_coloring ? "AgentIMColor" : "AgentChatColor" );
// FIRE-1061 - Color friends, lindens, muted, etc
textColor = LGGContactSets::getInstance()->colorize(agent_id, textColor, LGG_CS_CHAT);
diff --git a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml
index 0ec0626841..dda0a59f9e 100755
--- a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml
+++ b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml
@@ -454,38 +454,57 @@
width="95">
Direct
-
-
-
-
-
+
- IMs/Group
-
-
+ label=""
+ visibility_control="FSColorIMsDistinctly"
+ name="im_color_panel" >
+
+
+
+
+
+ IMs/Group
+
+
+