From 3b9dd14bd7d463696172f53a7e36ee5b3d795f2c Mon Sep 17 00:00:00 2001 From: Cinders Date: Wed, 31 Jul 2013 11:49:44 -0600 Subject: [PATCH] FIRE-11198: Make FIRE-10935 an optional color by adding a switch, default to previous behavior --- indra/newview/app_settings/settings.xml | 11 +++ indra/newview/fsconsoleutils.cpp | 3 +- .../xui/en/panel_preferences_colors.xml | 77 ++++++++++++------- 3 files changed, 61 insertions(+), 30 deletions(-) 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 + + Comment + Color IM/Group messages distinctly in the console. + Persist + 1 + Type + Boolean + Value + 0 + 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 + + +