From 8a65832a65fabf84cc428a70c2c306c1eb605e79 Mon Sep 17 00:00:00 2001 From: Hampus Date: Tue, 8 Sep 2026 14:05:10 +0200 Subject: [PATCH] feat(theme): default new accounts to the dark theme (#2575) --- fluxer_api/src/api/models/UserSettings.ts | 2 +- .../features/app/components/setup/SelfHostedSetupWizardGate.tsx | 2 +- fluxer_app/src/features/user/state/UserSettings.ts | 2 +- fluxer_docs/src/content/docs/http-api/users/settings.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fluxer_api/src/api/models/UserSettings.ts b/fluxer_api/src/api/models/UserSettings.ts index b5aaf13f3..855d991ee 100644 --- a/fluxer_api/src/api/models/UserSettings.ts +++ b/fluxer_api/src/api/models/UserSettings.ts @@ -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, diff --git a/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.tsx b/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.tsx index b57b53604..7e3dfeb2e 100644 --- a/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.tsx +++ b/fluxer_app/src/features/app/components/setup/SelfHostedSetupWizardGate.tsx @@ -430,7 +430,7 @@ export const SelfHostedSetupWizardGate = observer(() => { const [submitError, setSubmitError] = useState(null); const [stepNavigationLocked, setStepNavigationLocked] = useState(false); const [wizardSnapshot, setWizardSnapshot] = useState(createSetupWizardSnapshot); - const [setupTheme, setSetupTheme] = useState(ThemeTypes.SYSTEM); + const [setupTheme, setSetupTheme] = useState(ThemeTypes.DARK); const [forceUnauthenticatedSetup, setForceUnauthenticatedSetup] = useState(false); const [integrationDraft, setIntegrationDraft] = useState(() => ({ ...DEFAULT_INTEGRATION_DRAFT, diff --git a/fluxer_app/src/features/user/state/UserSettings.ts b/fluxer_app/src/features/user/state/UserSettings.ts index 7a67dabbd..bccd52dcb 100644 --- a/fluxer_app/src/features/user/state/UserSettings.ts +++ b/fluxer_app/src/features/user/state/UserSettings.ts @@ -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 = []; diff --git a/fluxer_docs/src/content/docs/http-api/users/settings.mdx b/fluxer_docs/src/content/docs/http-api/users/settings.mdx index fe4fae612..3c54fe960 100644 --- a/fluxer_docs/src/content/docs/http-api/users/settings.mdx +++ b/fluxer_docs/src/content/docs/http-api/users/settings.mdx @@ -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 |