Skip to content

Commit 32677c3

Browse files
committed
fix(theme): dark mode flash
1 parent d1ee5c3 commit 32677c3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/sim/app/api/users/me/settings/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const SettingsSchema = z.object({
3131
})
3232

3333
const defaultSettings = {
34-
theme: 'system',
34+
theme: 'dark',
3535
autoConnect: true,
3636
telemetryEnabled: true,
3737
emailPreferences: {},

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/settings-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export function SettingsModal({ open, onOpenChange }: SettingsModalProps) {
369369
autoConnect: data.autoConnect ?? true,
370370
showTrainingControls: data.showTrainingControls ?? false,
371371
superUserModeEnabled: data.superUserModeEnabled ?? true,
372-
theme: data.theme || 'system',
372+
theme: data.theme || 'dark',
373373
telemetryEnabled: data.telemetryEnabled ?? true,
374374
billingUsageNotificationsEnabled: data.billingUsageNotificationsEnabled ?? true,
375375
}

apps/sim/stores/settings/general/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const initialState: General = {
99
isAutoConnectEnabled: true,
1010
showTrainingControls: false,
1111
superUserModeEnabled: true,
12-
theme: 'system',
12+
theme: 'dark',
1313
telemetryEnabled: true,
1414
isBillingUsageNotificationsEnabled: true,
1515
isErrorNotificationsEnabled: true,

packages/db/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export const settings = pgTable('settings', {
450450
.unique(), // One settings record per user
451451

452452
// General settings
453-
theme: text('theme').notNull().default('system'),
453+
theme: text('theme').notNull().default('dark'),
454454
autoConnect: boolean('auto_connect').notNull().default(true),
455455

456456
// Privacy settings

0 commit comments

Comments
 (0)