feat(theme): default new accounts to the dark theme (#2575)

This commit is contained in:
Hampus
2026-09-08 14:05:10 +02:00
committed by GitHub
parent fd6ae4abd7
commit 8a65832a65
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ export class UserSettings {
return {
user_id: userId,
locale,
theme: theme ?? ThemeTypes.SYSTEM,
theme: theme ?? ThemeTypes.DARK,
status: 'online',
status_resets_at: null,
status_resets_to: null,
@@ -430,7 +430,7 @@ export const SelfHostedSetupWizardGate = observer(() => {
const [submitError, setSubmitError] = useState<string | null>(null);
const [stepNavigationLocked, setStepNavigationLocked] = useState(false);
const [wizardSnapshot, setWizardSnapshot] = useState(createSetupWizardSnapshot);
const [setupTheme, setSetupTheme] = useState<ThemeType>(ThemeTypes.SYSTEM);
const [setupTheme, setSetupTheme] = useState<ThemeType>(ThemeTypes.DARK);
const [forceUnauthenticatedSetup, setForceUnauthenticatedSetup] = useState(false);
const [integrationDraft, setIntegrationDraft] = useState<ServiceIntegrationDraft>(() => ({
...DEFAULT_INTEGRATION_DRAFT,
@@ -257,7 +257,7 @@ class UserSettingsState {
status: StatusType = StatusTypes.ONLINE;
statusResetsAt: string | null = null;
statusResetsTo: string | null = null;
theme: string = ThemeTypes.SYSTEM;
theme: string = ThemeTypes.DARK;
timeFormat: number = TimeFormatTypes.AUTO;
locale: string = 'en-US';
restrictedGuilds: Array<string> = [];
@@ -320,7 +320,7 @@ A new account starts with these values. Every field not listed starts empty, so
| Setting | Initial value |
| --- | --- |
| Theme | The theme chosen at registration, or `system` |
| Theme | The theme chosen at registration, or `dark` |
| Status | `online` |
| Rendering | Animated custom emoji, always-animated stickers, GIF autoplay, embeds and reactions rendered, spoilers on click, inline attachment and embed media |
| Incoming calls and group DM additions | Friends only |