mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
misc: Replace "day mode" with "light theme" in comments.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user