mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
add pink theme
This commit is contained in:
parent
2959cee2df
commit
d3bbb3bda7
@ -30,7 +30,7 @@ const App: React.FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTheme(appTheme)
|
setTheme(appTheme)
|
||||||
}, [])
|
}, [appTheme])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-[100vh] flex">
|
<div className="w-full h-[100vh] flex">
|
||||||
|
|||||||
@ -13,7 +13,7 @@ init().then(() => {
|
|||||||
<NextUIProvider>
|
<NextUIProvider>
|
||||||
<NextThemesProvider
|
<NextThemesProvider
|
||||||
attribute="class"
|
attribute="class"
|
||||||
themes={['light', 'dark', 'gray']}
|
themes={['light', 'dark', 'gray', 'pink']}
|
||||||
enableSystem
|
enableSystem
|
||||||
defaultTheme="dark"
|
defaultTheme="dark"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -98,6 +98,7 @@ const Settings: React.FC = () => {
|
|||||||
<Tab key="system" title="自动" />
|
<Tab key="system" title="自动" />
|
||||||
<Tab key="dark" title="深色" />
|
<Tab key="dark" title="深色" />
|
||||||
<Tab key="gray" title="灰色" />
|
<Tab key="gray" title="灰色" />
|
||||||
|
<Tab key="pink" title="粉色" />
|
||||||
<Tab key="light" title="浅色" />
|
<Tab key="light" title="浅色" />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
|||||||
2
src/shared/types.d.ts
vendored
2
src/shared/types.d.ts
vendored
@ -1,7 +1,7 @@
|
|||||||
type OutboundMode = 'rule' | 'global' | 'direct'
|
type OutboundMode = 'rule' | 'global' | 'direct'
|
||||||
type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent'
|
type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent'
|
||||||
type SysProxyMode = 'auto' | 'manual'
|
type SysProxyMode = 'auto' | 'manual'
|
||||||
type AppTheme = 'system' | 'light' | 'dark' | 'gray'
|
type AppTheme = 'system' | 'light' | 'dark' | 'gray' | 'pink'
|
||||||
type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay'
|
type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay'
|
||||||
type MihomoProxyType =
|
type MihomoProxyType =
|
||||||
| 'Direct'
|
| 'Direct'
|
||||||
|
|||||||
@ -29,6 +29,13 @@ module.exports = {
|
|||||||
400: '#a1a1aa'
|
400: '#a1a1aa'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
pink: {
|
||||||
|
extend: 'light',
|
||||||
|
colors: {
|
||||||
|
primary: '#ED9CC2',
|
||||||
|
secondary: '#71CCAA'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user