A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
feat(theme): default new accounts to the dark theme (#2575)
Hampus8a65832a65fa
diff --git a/fluxer_api/src/api/models/UserSettings.ts b/fluxer_api/src/api/models/UserSettings.tsindex 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.tsxindex 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<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,diff --git a/fluxer_app/src/features/user/state/UserSettings.ts b/fluxer_app/src/features/user/state/UserSettings.tsindex 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<string> = [];diff --git a/fluxer_docs/src/content/docs/http-api/users/settings.mdx b/fluxer_docs/src/content/docs/http-api/users/settings.mdxindex 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 |