Skip to content

Commit d3bbb3b

Browse files
author
pompurin404
committed
add pink theme
1 parent 2959cee commit d3bbb3b

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

src/renderer/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const App: React.FC = () => {
3030

3131
useEffect(() => {
3232
setTheme(appTheme)
33-
}, [])
33+
}, [appTheme])
3434

3535
return (
3636
<div className="w-full h-[100vh] flex">

src/renderer/src/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ init().then(() => {
1313
<NextUIProvider>
1414
<NextThemesProvider
1515
attribute="class"
16-
themes={['light', 'dark', 'gray']}
16+
themes={['light', 'dark', 'gray', 'pink']}
1717
enableSystem
1818
defaultTheme="dark"
1919
>

src/renderer/src/pages/settings.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const Settings: React.FC = () => {
9898
<Tab key="system" title="自动" />
9999
<Tab key="dark" title="深色" />
100100
<Tab key="gray" title="灰色" />
101+
<Tab key="pink" title="粉色" />
101102
<Tab key="light" title="浅色" />
102103
</Tabs>
103104
</SettingItem>

src/shared/types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type OutboundMode = 'rule' | 'global' | 'direct'
22
type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent'
33
type SysProxyMode = 'auto' | 'manual'
4-
type AppTheme = 'system' | 'light' | 'dark' | 'gray'
4+
type AppTheme = 'system' | 'light' | 'dark' | 'gray' | 'pink'
55
type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay'
66
type MihomoProxyType =
77
| 'Direct'

tailwind.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ module.exports = {
2929
400: '#a1a1aa'
3030
}
3131
}
32+
},
33+
pink: {
34+
extend: 'light',
35+
colors: {
36+
primary: '#ED9CC2',
37+
secondary: '#71CCAA'
38+
}
3239
}
3340
}
3441
})

0 commit comments

Comments
 (0)