diff options
Diffstat (limited to 'linden/indra/newview/llprefscolors.cpp')
-rw-r--r-- | linden/indra/newview/llprefscolors.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp index 0b4caf5..7d69eaf 100644 --- a/linden/indra/newview/llprefscolors.cpp +++ b/linden/indra/newview/llprefscolors.cpp | |||
@@ -82,10 +82,6 @@ BOOL LLPrefsColors::postBuild() | |||
82 | 82 | ||
83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); | 83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); |
84 | 84 | ||
85 | getChild<LLColorSwatchCtrl>("client_tag_color")->set(gSavedSettings.getColor4("ImprudenceTagColor")); | ||
86 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); | ||
87 | childSetValue("client_name_color_check", (*sShowClientColor)); | ||
88 | |||
89 | return TRUE; | 85 | return TRUE; |
90 | } | 86 | } |
91 | 87 | ||
@@ -103,7 +99,6 @@ void LLPrefsColors::refreshColors() | |||
103 | mFriendsChatColor = gSavedSettings.getColor4("FriendsChatColor"); | 99 | mFriendsChatColor = gSavedSettings.getColor4("FriendsChatColor"); |
104 | mOwnNameChatColor = gSavedSettings.getColor4("OwnNameChatColor"); | 100 | mOwnNameChatColor = gSavedSettings.getColor4("OwnNameChatColor"); |
105 | mEffectColor = gSavedSettings.getColor4("EffectColor"); | 101 | mEffectColor = gSavedSettings.getColor4("EffectColor"); |
106 | mClientTagColor = gSavedSettings.getColor4("ImprudenceTagColor"); | ||
107 | } | 102 | } |
108 | 103 | ||
109 | // static | 104 | // static |
@@ -135,18 +130,6 @@ void LLPrefsColors::updateFriendsCheck() | |||
135 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); | 130 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); |
136 | } | 131 | } |
137 | 132 | ||
138 | // static | ||
139 | void LLPrefsColors::onCommitCheckClient(LLUICtrl* ctrl, void* userdata) | ||
140 | { | ||
141 | LLPrefsColors* self = (LLPrefsColors*)userdata; | ||
142 | self->updateClientCheck(); | ||
143 | } | ||
144 | |||
145 | void LLPrefsColors::updateClientCheck() | ||
146 | { | ||
147 | getChild<LLColorSwatchCtrl>("client_tag_color")->setEnabled(childGetValue("client_name_color_checkt")); | ||
148 | } | ||
149 | |||
150 | void LLPrefsColors::cancel() | 133 | void LLPrefsColors::cancel() |
151 | { | 134 | { |
152 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); | 135 | gSavedSettings.setColor4("SystemChatColor", mSystemChatColor); |
@@ -161,7 +144,6 @@ void LLPrefsColors::cancel() | |||
161 | gSavedSettings.setColor4("FriendsChatColor", mFriendsChatColor); | 144 | gSavedSettings.setColor4("FriendsChatColor", mFriendsChatColor); |
162 | gSavedSettings.setColor4("OwnNameChatColor", mOwnNameChatColor); | 145 | gSavedSettings.setColor4("OwnNameChatColor", mOwnNameChatColor); |
163 | gSavedSettings.setColor4("EffectColor", mEffectColor); | 146 | gSavedSettings.setColor4("EffectColor", mEffectColor); |
164 | gSavedSettings.setColor4("ImprudenceTagColor", mClientTagColor); | ||
165 | } | 147 | } |
166 | 148 | ||
167 | void LLPrefsColors::apply() | 149 | void LLPrefsColors::apply() |
@@ -198,8 +180,5 @@ void LLPrefsColors::apply() | |||
198 | 180 | ||
199 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); | 181 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); |
200 | 182 | ||
201 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check")); | ||
202 | gSavedSettings.setColor4("ImprudenceTagColor", getChild<LLColorSwatchCtrl>("client_tag_color")->get()); | ||
203 | |||
204 | refreshColors(); // member values become the official values and cancel becomes a no-op. | 183 | refreshColors(); // member values become the official values and cancel becomes a no-op. |
205 | } | 184 | } |