Make white background permanent

(imported from commit a9164b8f800cbc992ec72e9125a5adb08bb97615)
This commit is contained in:
Allen Rabinovich
2013-12-10 10:45:13 -07:00
parent 6721c465c9
commit c51a2355ee
3 changed files with 2 additions and 27 deletions

View File

@@ -851,25 +851,6 @@ exports.collapse_recipient_group = function (row) {
/* EXPERIMENTS */
/* This method allows an advanced user to use the console
* to switch to a different pair of backgrounds for home
* view and narrowed view. It either defaults to a specific
* pair of colors, or allows the user to specify them.
*/
exports.switchBackground = function (homecolor, narrowcolor) {
homecolor = homecolor || "#ffffff";
narrowcolor = narrowcolor || "#effcff";
$("#white-background-style").remove();
$('head').append('<style id="white-background-style" type="text/css">' +
'body, #tab_bar, #tab_bar_underpadding, .message_list, #compose-container {' +
'background-color: ' + homecolor + '; }' +
'body.narrowed_view, .narrowed_view #tab_bar, .narrowed_view #tab_bar_underpadding,' +
'.narrowed_view .message_list, .narrowed_view #compose-container {' +
'background-color: ' + narrowcolor + '; }' +
'</style>');
return ("Background has been changed");
};
/* This method allows an advanced user to use the console
* to switch the application to span full width of the browser.
*/
@@ -1649,11 +1630,6 @@ $(function () {
$("#group-pm-list").hide();
}
// UI experiments
if (feature_flags.experimental_background) {
exports.switchBackground();
}
if (feature_flags.full_width) {
exports.switchToFullWidth();
}