mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-24 09:45:35 +08:00
feat: new themes
This commit is contained in:
parent
441957ff46
commit
677d024e98
@ -2,35 +2,38 @@ import { ApexOptions } from 'apexcharts'
|
|||||||
import byteSize from 'byte-size'
|
import byteSize from 'byte-size'
|
||||||
|
|
||||||
export const themes = [
|
export const themes = [
|
||||||
'light',
|
|
||||||
'dark',
|
|
||||||
'cupcake',
|
|
||||||
'bumblebee',
|
|
||||||
'emerald',
|
|
||||||
'corporate',
|
|
||||||
'synthwave',
|
|
||||||
'retro',
|
|
||||||
'cyberpunk',
|
|
||||||
'valentine',
|
|
||||||
'halloween',
|
|
||||||
'garden',
|
|
||||||
'forest',
|
|
||||||
'aqua',
|
|
||||||
'lofi',
|
|
||||||
'pastel',
|
|
||||||
'fantasy',
|
|
||||||
'wireframe',
|
|
||||||
'black',
|
|
||||||
'luxury',
|
|
||||||
'dracula',
|
|
||||||
'cmyk',
|
|
||||||
'autumn',
|
|
||||||
'business',
|
|
||||||
'acid',
|
'acid',
|
||||||
'lemonade',
|
'aqua',
|
||||||
'night',
|
'autumn',
|
||||||
|
'black',
|
||||||
|
'bumblebee',
|
||||||
|
'business',
|
||||||
|
'cmyk',
|
||||||
'coffee',
|
'coffee',
|
||||||
|
'corporate',
|
||||||
|
'cupcake',
|
||||||
|
'cyberpunk',
|
||||||
|
'dark',
|
||||||
|
'dim',
|
||||||
|
'dracula',
|
||||||
|
'emerald',
|
||||||
|
'fantasy',
|
||||||
|
'forest',
|
||||||
|
'garden',
|
||||||
|
'halloween',
|
||||||
|
'lemonade',
|
||||||
|
'light',
|
||||||
|
'lofi',
|
||||||
|
'luxury',
|
||||||
|
'night',
|
||||||
|
'nord',
|
||||||
|
'pastel',
|
||||||
|
'retro',
|
||||||
|
'sunset',
|
||||||
|
'synthwave',
|
||||||
|
'valentine',
|
||||||
'winter',
|
'winter',
|
||||||
|
'wireframe',
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
export enum ROUTES {
|
export enum ROUTES {
|
||||||
|
@ -61,11 +61,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<(typeof themes)[number]>('lofi'),
|
createSignal<(typeof themes)[number]>('nord'),
|
||||||
{ name: 'favDayTheme', storage: localStorage },
|
{ name: 'favDayTheme', storage: localStorage },
|
||||||
)
|
)
|
||||||
export const [favNightTheme, setFavNightTheme] = makePersisted(
|
export const [favNightTheme, setFavNightTheme] = makePersisted(
|
||||||
createSignal<(typeof themes)[number]>('business'),
|
createSignal<(typeof themes)[number]>('sunset'),
|
||||||
{ name: 'favNightTheme', storage: localStorage },
|
{ name: 'favNightTheme', storage: localStorage },
|
||||||
)
|
)
|
||||||
export const [connectionsTableSize, setConnectionsTableSize] = makePersisted(
|
export const [connectionsTableSize, setConnectionsTableSize] = makePersisted(
|
||||||
|
@ -3,6 +3,6 @@ import { createSignal } from 'solid-js'
|
|||||||
import { themes } from '~/constants'
|
import { themes } from '~/constants'
|
||||||
|
|
||||||
export const [curTheme, setCurTheme] = makePersisted(
|
export const [curTheme, setCurTheme] = makePersisted(
|
||||||
createSignal<(typeof themes)[number]>('halloween'),
|
createSignal<(typeof themes)[number]>('sunset'),
|
||||||
{ name: 'theme', storage: localStorage },
|
{ name: 'theme', storage: localStorage },
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user