Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
misc: Replace "day mode" with "light theme" in comments.
Sahil Batraf49346892f28
diff --git a/static/js/admin.js b/static/js/admin.jsindex 9278141f177..a6fa0e7f0c0 100644--- a/static/js/admin.js+++ b/static/js/admin.js@@ -163,8 +163,8 @@ export function build_page() {};if (options.realm_logo_source !== "D" && options.realm_night_logo_source === "D") {- // If no dark theme logo is specified but a day mode one is,- // use the day mode one. See also similar code in realm_logo.js.+ // If no dark theme logo is specified but a light theme one is,+ // use the light theme one. See also similar code in realm_logo.js.options.realm_night_logo_url = options.realm_logo_url;}diff --git a/static/js/copy_and_paste.js b/static/js/copy_and_paste.jsindex 913345e616c..d34e033238e 100644--- a/static/js/copy_and_paste.js+++ b/static/js/copy_and_paste.js@@ -100,7 +100,7 @@ function select_div(div, selection) {div.css({position: "absolute",left: "-99999px",- // Color and background is made according to "day mode"+ // Color and background is made according to "light theme"// exclusively here because when copying the content// into, say, Gmail compose box, the styles come along.// This is done to avoid copying the content with darkdiff --git a/static/js/realm_logo.js b/static/js/realm_logo.jsindex d0db945edc5..0aad9b04a71 100644--- a/static/js/realm_logo.js+++ b/static/js/realm_logo.js@@ -69,8 +69,8 @@ export function render() {$("#realm-day-logo-upload-widget .image-block").attr("src", page_params.realm_logo_url);if (page_params.realm_night_logo_source === "D" && page_params.realm_logo_source !== "D") {- // If no dark theme logo is uploaded but a day mode one- // is, use the day mode one; this handles the common case+ // If no dark theme logo is uploaded but a light theme one+ // is, use the light theme one; this handles the common case// of transparent background logos that look good on both// night and day themes. See also similar code in admin.js.diff --git a/static/js/ui_init.js b/static/js/ui_init.jsindex 4eeac84b932..414d4da45af 100644--- a/static/js/ui_init.js+++ b/static/js/ui_init.js@@ -439,7 +439,7 @@ export function initialize_everything() {- I changed my 24-hour time preference.- The realm admin changed who can edit topics.- The team's realm icon has changed.- - I switched from day mode to dark theme.+ - I switched from light theme to dark theme.Especially for things that are settings-related,we rarely abstract away the data from `page_params`.