misc: Replace "day mode" with "light theme" in comments.

This commit is contained in:
Sahil Batra
2021-11-26 14:59:05 +05:30
committed by Tim Abbott
parent 29dcbbb548
commit f49346892f
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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 dark

View File

@@ -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.

View File

@@ -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`.