Skip to content

Commit e86c3b2

Browse files
committed
fix: actually restore the default accent color
1 parent f70c603 commit e86c3b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/Settings/AccentColorPicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { accentColors, selectedAccentColorOptionId, setAccentColor } = useAccentC
66
onPrehydrate(el => {
77
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}')
88
// Hardcoded — onPrehydrate is serialized into a <script> tag and cannot reference imports
9-
const defaultId = 'neutral'
9+
const defaultId = 'sky'
1010
const id = settings.accentColorId ?? defaultId
1111
if (id) {
1212
const input = el.querySelector<HTMLInputElement>(`input[value="${id}"]`)

app/composables/useSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const DEFAULT_SETTINGS: AppSettings = {
7676

7777
export const DEFAULT_ACCENT_COLOR_ID = DEFAULT_SETTINGS.accentColorId
7878
export const DEFAULT_BACKGROUND_THEME_ID = DEFAULT_SETTINGS.preferredBackgroundTheme
79-
export const DEFAULT_ACCENT_COLOR_OPTION_ID: AccentColorId = DEFAULT_ACCENT_COLOR_ID ?? 'neutral'
79+
export const DEFAULT_ACCENT_COLOR_OPTION_ID: AccentColorId = DEFAULT_ACCENT_COLOR_ID ?? 'sky'
8080
export const DEFAULT_BACKGROUND_THEME_OPTION_ID: BackgroundThemeId =
8181
DEFAULT_BACKGROUND_THEME_ID ?? 'neutral'
8282

0 commit comments

Comments
 (0)