Skip to content

Commit efc0274

Browse files
sahil839danielpyon
authored andcommitted
misc: Rename "dark mode" to "dark theme".
Fixes part of zulip#20228.
1 parent 49ab4f4 commit efc0274

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

docs/subsystems/slash-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ the round trip time and shows a little message above
2929
the compose box that the user can see and then dismiss.
3030

3131
For commands like "/light" and "/dark", the server does
32-
a little bit of logic to toggle the user's dark mode
32+
a little bit of logic to toggle the user's dark theme
3333
setting, and this is largely done inside `zcommand.py`.
3434
The server sends a very basic response, and then
3535
the client actually changes the display colors. The

frontend_tests/node_tests/composebox_typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const my_slash = {
167167
const dark_slash = {
168168
name: "dark",
169169
aliases: "night",
170-
text: "translated: /dark (Toggle dark mode)",
170+
text: "translated: /dark (Toggle dark theme)",
171171
};
172172

173173
const light_slash = {

static/js/composebox_typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function should_show_custom_query(query, items) {
393393

394394
export const slash_commands = [
395395
{
396-
text: $t({defaultMessage: "/dark (Toggle dark mode)"}),
396+
text: $t({defaultMessage: "/dark (Toggle dark theme)"}),
397397
name: "dark",
398398
aliases: "night",
399399
},

static/js/zcommand.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function enter_day_mode() {
7575
});
7676
},
7777
title_text: $t({defaultMessage: "Light mode"}),
78-
undo_button_text: $t({defaultMessage: "Dark mode"}),
78+
undo_button_text: $t({defaultMessage: "Dark theme"}),
7979
});
8080
},
8181
});
@@ -96,7 +96,7 @@ export function enter_night_mode() {
9696
command: "/day",
9797
});
9898
},
99-
title_text: $t({defaultMessage: "Dark mode"}),
99+
title_text: $t({defaultMessage: "Dark theme"}),
100100
undo_button_text: $t({defaultMessage: "Light mode"}),
101101
});
102102
},

templates/zerver/help/configure-default-new-user-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ preference settings, including the following:
1414

1515
* Display settings, including:
1616
* Default view ([Recent topics](/help/recent-topics) vs. [All messages](/help/reading-strategies#all-messages))
17-
* [Light mode vs. dark mode](/help/dark-theme)
17+
* [Light mode vs. dark theme](/help/dark-theme)
1818
* [Emoji theme](/help/emoji-and-emoticons#change-your-emoji-set)
1919
* Notification settings, including:
2020
* [What types of messages trigger notifications][default-notifications]

templates/zerver/help/include/add-a-wide-logo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ transparent background, and trim any bordering whitespace. To upload a logo:
1212

1313
{end_tabs}
1414

15-
Make sure to test the logo in both light mode and [dark mode](/help/dark-theme).
15+
Make sure to test the logo in both light mode and [dark theme](/help/dark-theme).

zerver/lib/zcommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def change_mode_setting(
3434
return {}
3535
elif command == "night":
3636
if user_profile.color_scheme == UserProfile.COLOR_SCHEME_NIGHT:
37-
return dict(msg="You are still in dark mode.")
37+
return dict(msg="You are still in dark theme.")
3838
return dict(
3939
msg=change_mode_setting(
4040
command="dark",

zerver/tests/test_zcommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_night_zcommand(self) -> None:
3434

3535
result = self.client_post("/json/zcommand", payload)
3636
self.assert_json_success(result)
37-
self.assertIn("still in dark mode", result.json()["msg"])
37+
self.assertIn("still in dark theme", result.json()["msg"])
3838

3939
def test_day_zcommand(self) -> None:
4040
self.login("hamlet")

0 commit comments

Comments
 (0)