Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
misc: Rename "dark mode" to "dark theme".
Sahil Batra5024ba98cdfe
diff --git a/docs/subsystems/slash-commands.md b/docs/subsystems/slash-commands.mdindex c6ae26209ed..4ce79d4de9e 100644--- a/docs/subsystems/slash-commands.md+++ b/docs/subsystems/slash-commands.md@@ -29,7 +29,7 @@ the round trip time and shows a little message abovethe compose box that the user can see and then dismiss.For commands like "/light" and "/dark", the server does-a little bit of logic to toggle the user's dark mode+a little bit of logic to toggle the user's dark themesetting, and this is largely done inside `zcommand.py`.The server sends a very basic response, and thenthe client actually changes the display colors. Thediff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.jsindex 9e180b10a6d..dd40ecd973d 100644--- a/frontend_tests/node_tests/composebox_typeahead.js+++ b/frontend_tests/node_tests/composebox_typeahead.js@@ -167,7 +167,7 @@ const my_slash = {const dark_slash = {name: "dark",aliases: "night",- text: "translated: /dark (Toggle dark mode)",+ text: "translated: /dark (Toggle dark theme)",};const light_slash = {diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.jsindex 920933e4770..af64ee885ee 100644--- a/static/js/composebox_typeahead.js+++ b/static/js/composebox_typeahead.js@@ -393,7 +393,7 @@ function should_show_custom_query(query, items) {export const slash_commands = [{- text: $t({defaultMessage: "/dark (Toggle dark mode)"}),+ text: $t({defaultMessage: "/dark (Toggle dark theme)"}),name: "dark",aliases: "night",},diff --git a/static/js/zcommand.js b/static/js/zcommand.jsindex 3a86c0b8b3e..6d6efb199cb 100644--- a/static/js/zcommand.js+++ b/static/js/zcommand.js@@ -75,7 +75,7 @@ export function enter_day_mode() {});},title_text: $t({defaultMessage: "Light mode"}),- undo_button_text: $t({defaultMessage: "Dark mode"}),+ undo_button_text: $t({defaultMessage: "Dark theme"}),});},});@@ -96,7 +96,7 @@ export function enter_night_mode() {command: "/day",});},- title_text: $t({defaultMessage: "Dark mode"}),+ title_text: $t({defaultMessage: "Dark theme"}),undo_button_text: $t({defaultMessage: "Light mode"}),});},diff --git a/templates/zerver/help/configure-default-new-user-settings.md b/templates/zerver/help/configure-default-new-user-settings.mdindex e6f2146a8f6..fa7766933a0 100644--- a/templates/zerver/help/configure-default-new-user-settings.md+++ b/templates/zerver/help/configure-default-new-user-settings.md@@ -14,7 +14,7 @@ preference settings, including the following:* Display settings, including:* Default view ([Recent topics](/help/recent-topics) vs. [All messages](/help/reading-strategies#all-messages))- * [Light mode vs. dark mode](/help/dark-theme)+ * [Light mode vs. dark theme](/help/dark-theme)* [Emoji theme](/help/emoji-and-emoticons#change-your-emoji-set)* Notification settings, including:* [What types of messages trigger notifications][default-notifications]diff --git a/templates/zerver/help/include/add-a-wide-logo.md b/templates/zerver/help/include/add-a-wide-logo.mdindex 15ab38747ef..e9ffabfbba9 100644--- a/templates/zerver/help/include/add-a-wide-logo.md+++ b/templates/zerver/help/include/add-a-wide-logo.md@@ -12,4 +12,4 @@ transparent background, and trim any bordering whitespace. To upload a logo:{end_tabs}-Make sure to test the logo in both light mode and [dark mode](/help/dark-theme).+Make sure to test the logo in both light mode and [dark theme](/help/dark-theme).diff --git a/zerver/lib/zcommand.py b/zerver/lib/zcommand.pyindex 457c40cce23..6bf2c2c6a04 100644--- a/zerver/lib/zcommand.py+++ b/zerver/lib/zcommand.py@@ -34,7 +34,7 @@ def process_zcommands(content: str, user_profile: UserProfile) -> Dict[str, Any]return {}elif command == "night":if user_profile.color_scheme == UserProfile.COLOR_SCHEME_NIGHT:- return dict(msg="You are still in dark mode.")+ return dict(msg="You are still in dark theme.")return dict(msg=change_mode_setting(command="dark",diff --git a/zerver/tests/test_zcommand.py b/zerver/tests/test_zcommand.pyindex 0ab8c39b921..5092b078112 100644--- a/zerver/tests/test_zcommand.py+++ b/zerver/tests/test_zcommand.py@@ -34,7 +34,7 @@ class ZcommandTest(ZulipTestCase):result = self.client_post("/json/zcommand", payload)self.assert_json_success(result)- self.assertIn("still in dark mode", result.json()["msg"])+ self.assertIn("still in dark theme", result.json()["msg"])def test_day_zcommand(self) -> None:self.login("hamlet")