diff --git a/indra/newview/app_settings/settings_alchemy.xml b/indra/newview/app_settings/settings_alchemy.xml index 76db5db97bf107aae2744895c24bbeeaa4c53aea..edf5441ff197dc286cf61117796b6e80ccc5aa1e 100644 --- a/indra/newview/app_settings/settings_alchemy.xml +++ b/indra/newview/app_settings/settings_alchemy.xml @@ -508,5 +508,16 @@ <key>Value</key> <boolean>0</boolean> </map> + <key>ResetUserColorsOnLogout</key> + <map> + <key>Comment</key> + <string>Saves an empty color file on login to start fresh on next launch</string> + <key>Persist</key> + <integer>0</integer> + <key>Type</key> + <string>Boolean</string> + <key>Value</key> + <integer>0</integer> + </map> </map> </llsd> diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index c536a73e5c1ecaa28a2528c3ead5da75c005872b..31d981fd982e06b7b3c0b24c16f0c76e1858e464 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1921,7 +1921,7 @@ bool LLAppViewer::cleanup() // save their rects on delete. gSavedSettings.saveToFile(gSavedSettings.getString("ClientSettingsFile"), TRUE); - LLUIColorTable::instance().saveUserSettings(); + LLUIColorTable::instance().saveUserSettings(gSavedSettings.getBool("ResetUserColorsOnLogout")); // PerAccountSettingsFile should be empty if no user has been logged on. // *FIX:Mani This should get really saved in a "logoff" mode. diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 912a6e624057e03f3d39db9425f58a5fe589d135..477c79988fc487cfc93816d6f23f7547fe3b1428 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -1607,6 +1607,13 @@ This debug setting change will take effect after you restart [APP_NAME]. name="ChangeSkin" type="alertmodal"> The new skin will appear after you restart [APP_NAME]. +Would you like to reset modified colors back to their defaults? + <tag>confirm</tag> + <usetemplate + canceltext="Cancel" + name="yesnocancelbuttons" + notext="No" + yestext="Yes"/> </notification> <notification