diff --git a/indra/llui/llconsole.cpp b/indra/llui/llconsole.cpp index 9fe604a4d4..3dc03bc6f2 100644 --- a/indra/llui/llconsole.cpp +++ b/indra/llui/llconsole.cpp @@ -193,10 +193,7 @@ void LLConsole::draw() // FIRE-1332 - Sepeate opacity settings for nametag and console chat F32 console_opacity = llclamp(LLUI::sSettingGroups["config"]->getF32("ConsoleBackgroundOpacity"), 0.f, 1.f); - //AO: Unify colors with the color preferences control for all onscreen overlay background - // console/bubblechat/tag backgrounds. FIRE-969 - // LLColor4 color = LLUIColorTable::instance().getColor("ConsoleBackground"); - LLColor4 color = LLUIColorTable::instance().getColor("NameTagBackground"); + LLColor4 color = LLUIColorTable::instance().getColor("ConsoleBackground"); // color.mV[VALPHA] *= console_opacity; diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 08b019b3d3..8d949c1c4d 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -590,6 +590,7 @@ BOOL LLFloaterPreference::postBuild() gSavedSettings.getControl("ChatFontSize")->getSignal()->connect(boost::bind(&LLViewerChat::signalChatFontChanged)); gSavedSettings.getControl("ChatBubbleOpacity")->getSignal()->connect(boost::bind(&LLFloaterPreference::onNameTagOpacityChange, this, _2)); + gSavedSettings.getControl("ConsoleBackgroundOpacity")->getSignal()->connect(boost::bind(&LLFloaterPreference::onConsoleOpacityChange, this, _2)); // FIRE-1332 - Sepeate opacity settings for nametag and console chat gSavedSettings.getControl("PreferredMaturity")->getSignal()->connect(boost::bind(&LLFloaterPreference::onChangeMaturity, this)); @@ -1157,6 +1158,18 @@ void LLFloaterPreference::onNameTagOpacityChange(const LLSD& newvalue) } } +// FIRE-1332 - Sepeate opacity settings for nametag and console chat +void LLFloaterPreference::onConsoleOpacityChange(const LLSD& newvalue) +{ + LLColorSwatchCtrl* color_swatch = findChild("console_background"); + if (color_swatch) + { + LLColor4 new_color = color_swatch->get(); + color_swatch->set( new_color.setAlpha(newvalue.asReal()) ); + } +} +// + void LLFloaterPreference::onClickSetCache() { std::string cur_name(gSavedSettings.getString("CacheLocation")); diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index 5e2eff45cb..9a8d107001 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -94,6 +94,7 @@ protected: void onClickBrowserClearCache(); // Clear web history and caches as well as viewer caches above void onLanguageChange(); void onNameTagOpacityChange(const LLSD& newvalue); + void onConsoleOpacityChange(const LLSD& newvalue); // FIRE-1332 - Sepeate opacity settings for nametag and console chat // Pie menu // make sure controls get greyed out or enabled when pie color override is toggled 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 e937bdd95e..0b336dee30 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_colors.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_colors.xml @@ -1425,6 +1425,35 @@ show_text="true" top_pad="2" width="415" /> + + Console Opacity: + + + + + + left_pad="10" + width="378" />