diff --git a/README.md b/README.md index f97e26b..bc28e0d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@

-| | 深色 | 灰色 | 浅色 | -| ---- | --------------------------- | --------------------------- | ---------------------------- | -| 蓝色 | ![](./images/dark-blue.png) | ![](./images/gray-blue.png) | ![](./images/light-blue.png) | -| 粉色 | ![](./images/dark-pink.png) | ![](./images/gray-pink.png) | ![](./images/light-pink.png) | +| | 深色 | 灰色 | 浅色 | +| ---- | ---------------------------- | ---------------------------- | ----------------------------- | +| 蓝色 | ![](./images/dark-blue.png) | ![](./images/gray-blue.png) | ![](./images/light-blue.png) | +| 粉色 | ![](./images/dark-pink.png) | ![](./images/gray-pink.png) | ![](./images/light-pink.png) | +| 绿色 | ![](./images/dark-green.png) | ![](./images/gray-green.png) | ![](./images/light-green.png) | diff --git a/images/dark-green.png b/images/dark-green.png new file mode 100644 index 0000000..7fd0df0 Binary files /dev/null and b/images/dark-green.png differ diff --git a/images/gray-green.png b/images/gray-green.png new file mode 100644 index 0000000..586ca3c Binary files /dev/null and b/images/gray-green.png differ diff --git a/images/light-green.png b/images/light-green.png new file mode 100644 index 0000000..91935f9 Binary files /dev/null and b/images/light-green.png differ diff --git a/src/renderer/src/main.tsx b/src/renderer/src/main.tsx index 0b3a63c..1c74bd5 100644 --- a/src/renderer/src/main.tsx +++ b/src/renderer/src/main.tsx @@ -14,7 +14,17 @@ init().then(() => { diff --git a/src/renderer/src/pages/settings.tsx b/src/renderer/src/pages/settings.tsx index 9653730..4c106f3 100644 --- a/src/renderer/src/pages/settings.tsx +++ b/src/renderer/src/pages/settings.tsx @@ -146,6 +146,7 @@ const Settings: React.FC = () => { > + )} diff --git a/src/shared/types.d.ts b/src/shared/types.d.ts index 3be67de..ccf43d6 100644 --- a/src/shared/types.d.ts +++ b/src/shared/types.d.ts @@ -1,7 +1,17 @@ type OutboundMode = 'rule' | 'global' | 'direct' type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'silent' type SysProxyMode = 'auto' | 'manual' -type AppTheme = 'system' | 'light' | 'dark' | 'gray' | 'light-pink' | 'dark-pink' | 'gray-pink' +type AppTheme = + | 'system' + | 'light' + | 'dark' + | 'gray' + | 'light-pink' + | 'dark-pink' + | 'gray-pink' + | 'light-green' + | 'dark-green' + | 'gray-green' type MihomoGroupType = 'Selector' | 'URLTest' | 'LoadBalance' | 'Relay' type MihomoProxyType = | 'Direct' diff --git a/tailwind.config.js b/tailwind.config.js index f8f93a7..ad51762 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -62,6 +62,42 @@ module.exports = { primary: '#ED9CC2', secondary: '#71CCAA' } + }, + 'light-green': { + extend: 'light', + colors: { + primary: '#71CCAA', + secondary: '#ED9CC2', + danger: '#ED9CC2' + } + }, + 'dark-green': { + extend: 'dark', + colors: { + primary: '#71CCAA', + secondary: '#ED9CC2', + danger: '#ED9CC2' + } + }, + 'gray-green': { + extend: 'dark', + colors: { + background: '#18181b', + content1: '#27272a', + content2: '#3f3f46', + content3: '#52525b', + default: { + DEFAULT: '#52525b', + 50: '#27272a', + 100: '#3f3f46', + 200: '#52525b', + 300: '#71717a', + 400: '#a1a1aa' + }, + primary: '#71CCAA', + secondary: '#ED9CC2', + danger: '#ED9CC2' + } } } })