feat(theme): update default theme

This commit is contained in:
kunish 2023-09-23 20:47:29 +08:00
parent 53ee2f31b3
commit be0bc55317
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ export const themes = [
'night',
'coffee',
'winter',
]
] as const
export enum ROUTES {
Overview = '/overview',

View File

@ -10,6 +10,7 @@ import {
PROXIES_ORDERING_TYPE,
PROXIES_PREVIEW_TYPE,
TAILWINDCSS_SIZE,
themes,
} from '~/constants'
import {
ConnectionsTableColumnOrder,
@ -48,11 +49,11 @@ export const [autoSwitchTheme, setAutoSwitchTheme] = makePersisted(
{ name: 'autoSwitchTheme', storage: localStorage },
)
export const [favDayTheme, setFavDayTheme] = makePersisted(
createSignal('light'),
createSignal<(typeof themes)[number]>('lofi'),
{ name: 'favDayTheme', storage: localStorage },
)
export const [favNightTheme, setFavNightTheme] = makePersisted(
createSignal('night'),
createSignal<(typeof themes)[number]>('business'),
{ name: 'favNightTheme', storage: localStorage },
)
export const [connectionsTableSize, setConnectionsTableSize] = makePersisted(