diff options
author | angela <angela@lindenlab.com> | 2009-11-12 21:20:18 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-11-12 21:20:18 +0800 |
commit | 11fc2da6fa5fba0bb659dd97f8533e4529aece06 (patch) | |
tree | 8bacc0518c6556c341780d325de9c968d7abaeb3 /indra/llui | |
parent | b1a81afef6395e136f26e296311ec9b57eef260e (diff) |
make color and font affecting both nearby chat and toasts
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/lluicolortable.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/llui/lluicolortable.cpp b/indra/llui/lluicolortable.cpp index f1e3000547..9be33483d0 100644 --- a/indra/llui/lluicolortable.cpp +++ b/indra/llui/lluicolortable.cpp @@ -192,19 +192,27 @@ void LLUIColorTable::clear() LLUIColor LLUIColorTable::getColor(const std::string& name, const LLColor4& default_color) const { string_color_map_t::const_iterator iter = mUserSetColors.find(name); + if(iter != mUserSetColors.end()) { return LLUIColor(&iter->second); } iter = mLoadedColors.find(name); - return (iter != mLoadedColors.end() ? LLUIColor(&iter->second) : LLUIColor(default_color)); + + if(iter != mLoadedColors.end()) + { + return LLUIColor(&iter->second); + } + + return LLUIColor(default_color); } // update user color, loaded colors are parsed on initialization void LLUIColorTable::setColor(const std::string& name, const LLColor4& color) { setColor(name, color, mUserSetColors); + setColor(name, color, mLoadedColors); } bool LLUIColorTable::loadFromSettings() |