Skip to content

Commit

Permalink
add pink theme
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 9, 2024
1 parent 2959cee commit d3bbb3b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const App: React.FC = () => {

useEffect(() => {
setTheme(appTheme)
}, [])
}, [appTheme])

return (
<div className="w-full h-[100vh] flex">
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ init().then(() => {
<NextUIProvider>
<NextThemesProvider
attribute="class"
themes={['light', 'dark', 'gray']}
themes={['light', 'dark', 'gray', 'pink']}
enableSystem
defaultTheme="dark"
>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const Settings: React.FC = () => {
<Tab key="system" title="自动" />
<Tab key="dark" title="深色" />
<Tab key="gray" title="灰色" />
<Tab key="pink" title="粉色" />
<Tab key="light" title="浅色" />
</Tabs>
</SettingItem>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type OutboundMode = 'rule' | 'global' | 'direct'
type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent'
type SysProxyMode = 'auto' | 'manual'
type AppTheme = 'system' | 'light' | 'dark' | 'gray'
type AppTheme = 'system' | 'light' | 'dark' | 'gray' | 'pink'
type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay'
type MihomoProxyType =
| 'Direct'
Expand Down
7 changes: 7 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ module.exports = {
400: '#a1a1aa'
}
}
},
pink: {
extend: 'light',
colors: {
primary: '#ED9CC2',
secondary: '#71CCAA'
}
}
}
})
Expand Down

0 comments on commit d3bbb3b

Please sign in to comment.