Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
misc: Replace "night mode" with "dark theme" in comments.
Sahil Batra88e21d038795
diff --git a/static/js/admin.js b/static/js/admin.jsindex 639ada286ff..9278141f177 100644--- a/static/js/admin.js+++ b/static/js/admin.js@@ -163,7 +163,7 @@ export function build_page() {};if (options.realm_logo_source !== "D" && options.realm_night_logo_source === "D") {- // If no night mode logo is specified but a day mode one is,+ // 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.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 1ab1752be65..913345e616c 100644--- a/static/js/copy_and_paste.js+++ b/static/js/copy_and_paste.js@@ -104,7 +104,7 @@ function select_div(div, selection) {// 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 dark- // background when using the app in night mode.+ // background when using the app in dark theme.// We can avoid other custom styles since they are wrapped// inside another parent such as `.message_content`.color: "#333",diff --git a/static/js/realm_logo.js b/static/js/realm_logo.jsindex 3c268605f9f..d0db945edc5 100644--- a/static/js/realm_logo.js+++ b/static/js/realm_logo.js@@ -69,7 +69,7 @@ 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 night mode logo is uploaded but a day mode one+ // If no dark theme logo is uploaded but a day mode one// is, use the day mode 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 ced253659a7..4eeac84b932 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 night mode.+ - I switched from day mode to dark theme.Especially for things that are settings-related,we rarely abstract away the data from `page_params`.diff --git a/static/styles/dark_theme.css b/static/styles/dark_theme.cssindex 7f213220d61..80240b62a6b 100644--- a/static/styles/dark_theme.css+++ b/static/styles/dark_theme.css@@ -167,7 +167,7 @@ body.night-mode {}}- /* this one is because in the app we have blue and in night-mode it should be white. */+ /* this one is because in the app we have blue and in dark-theme it should be white. */.popover a {color: inherit;}diff --git a/static/styles/settings.css b/static/styles/settings.cssindex 7caf7fb5e0f..efdfe4a3f7c 100644--- a/static/styles/settings.css+++ b/static/styles/settings.css@@ -1651,7 +1651,7 @@ input[type="checkbox"] {}a.dropdown_list_reset_button {- /* Prevent night mode from overriding background. */+ /* Prevent dark theme from overriding background. */background: unset !important;border: none;margin-left: 10px;diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.pyindex 5b190de1d86..2352337a518 100644--- a/zerver/tests/test_upload.py+++ b/zerver/tests/test_upload.py@@ -1689,7 +1689,7 @@ class RealmLogoTest(UploadSerializeMixin, ZulipTestCase):class RealmNightLogoTest(RealmLogoTest):- # Run the same tests as for RealmLogoTest, just with night mode enabled+ # Run the same tests as for RealmLogoTest, just with dark theme enablednight = True