mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(theme): default new accounts to the dark theme (#2575)
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user