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', 'night',
'coffee', 'coffee',
'winter', 'winter',
] ] as const
export enum ROUTES { export enum ROUTES {
Overview = '/overview', Overview = '/overview',

View File

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