mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Make white background permanent
(imported from commit a9164b8f800cbc992ec72e9125a5adb08bb97615)
This commit is contained in:
@@ -47,7 +47,6 @@ exports.use_socket = page_params.staging;
|
|||||||
exports.clicking_notification_causes_narrow = page_params.staging || is_customer4 ||
|
exports.clicking_notification_causes_narrow = page_params.staging || is_customer4 ||
|
||||||
_.contains(['customer25.invalid', 'mit.edu', 'customer21.invalid'], page_params.domain);
|
_.contains(['customer25.invalid', 'mit.edu', 'customer21.invalid'], page_params.domain);
|
||||||
|
|
||||||
exports.experimental_background = page_params.staging || _.contains(['mit.edu'], page_params.domain);
|
|
||||||
exports.full_width = page_params.staging;
|
exports.full_width = page_params.staging;
|
||||||
|
|
||||||
exports.show_digest_email_setting = page_params.staging;
|
exports.show_digest_email_setting = page_params.staging;
|
||||||
|
|||||||
@@ -851,25 +851,6 @@ exports.collapse_recipient_group = function (row) {
|
|||||||
|
|
||||||
/* EXPERIMENTS */
|
/* 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
|
/* This method allows an advanced user to use the console
|
||||||
* to switch the application to span full width of the browser.
|
* to switch the application to span full width of the browser.
|
||||||
*/
|
*/
|
||||||
@@ -1649,11 +1630,6 @@ $(function () {
|
|||||||
$("#group-pm-list").hide();
|
$("#group-pm-list").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// UI experiments
|
|
||||||
if (feature_flags.experimental_background) {
|
|
||||||
exports.switchBackground();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (feature_flags.full_width) {
|
if (feature_flags.full_width) {
|
||||||
exports.switchToFullWidth();
|
exports.switchToFullWidth();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ body,
|
|||||||
#tab_bar_underpadding,
|
#tab_bar_underpadding,
|
||||||
.message_list,
|
.message_list,
|
||||||
#compose-container {
|
#compose-container {
|
||||||
background-color: #f4f5f4;
|
background-color: ##ffffff;
|
||||||
-webkit-transition: background-color 200ms linear;
|
-webkit-transition: background-color 200ms linear;
|
||||||
-moz-transition: background-color 200ms linear;
|
-moz-transition: background-color 200ms linear;
|
||||||
-o-transition: background-color 200ms linear;
|
-o-transition: background-color 200ms linear;
|
||||||
@@ -28,7 +28,7 @@ body.narrowed_view,
|
|||||||
.narrowed_view #tab_bar_underpadding,
|
.narrowed_view #tab_bar_underpadding,
|
||||||
.narrowed_view .message_list,
|
.narrowed_view .message_list,
|
||||||
.narrowed_view #compose-container {
|
.narrowed_view #compose-container {
|
||||||
background-color: #f0f8ff;
|
background-color: #effcff;
|
||||||
-webkit-transition: background-color 200ms linear;
|
-webkit-transition: background-color 200ms linear;
|
||||||
-moz-transition: background-color 200ms linear;
|
-moz-transition: background-color 200ms linear;
|
||||||
-o-transition: background-color 200ms linear;
|
-o-transition: background-color 200ms linear;
|
||||||
|
|||||||
Reference in New Issue
Block a user