theme: Rename dark_theme.ts -> theme.ts.

The dark_theme module now contains logic for light, dark, and automatic
theme switching. Thus, we rename it a more generic name, `theme.ts`.
This commit is contained in:
Sayam Samal
2024-06-20 01:59:48 +05:30
committed by Tim Abbott
parent 05c61037c8
commit 2417155828
7 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,6 @@ import * as compose_tooltips from "./compose_tooltips";
import * as composebox_typeahead from "./composebox_typeahead";
import * as condense from "./condense";
import * as copy_and_paste from "./copy_and_paste";
import * as dark_theme from "./dark_theme";
import * as desktop_integration from "./desktop_integration";
import * as desktop_notifications from "./desktop_notifications";
import * as drafts from "./drafts";
@@ -126,6 +125,7 @@ import * as stream_settings_ui from "./stream_settings_ui";
import * as stream_topic_history from "./stream_topic_history";
import * as stream_topic_history_util from "./stream_topic_history_util";
import * as sub_store from "./sub_store";
import * as theme from "./theme";
import * as timerender from "./timerender";
import * as tippyjs from "./tippyjs";
import * as topic_list from "./topic_list";
@@ -422,7 +422,7 @@ export function initialize_everything(state_data) {
sidebar_ui.restore_sidebar_toggle_status();
information_density.initialize();
if (page_params.is_spectator) {
dark_theme.initialize_theme_for_spectator();
theme.initialize_theme_for_spectator();
}
i18n.initialize({language_list: page_params.language_list});