From 3501561d140d91d9822d54d14cb25eeaaa29a40f Mon Sep 17 00:00:00 2001 From: ModStart Date: Fri, 29 Nov 2024 19:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 2 +- electron/mapi/app/main.ts | 2 +- electron/mapi/ui/render.ts | 2 +- package.json | 2 +- src/components/PageNav.vue | 2 +- src/layouts/Main.vue | 2 +- src/pages/Device.vue | 2 +- src/pages/Setting.vue | 6 +++--- src/style.less | 4 ++-- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/changelog.md b/changelog.md index b582ac61..3e9f03de 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ ## v0.2.0 -- 新增:暗黑模式 +- 新增:暗黑模式支持,支持自动切换系统主题 - 修复:命令行中带有空格的参数无法执行问题 - 修复:最小化最大化不能点击问题 diff --git a/electron/mapi/app/main.ts b/electron/mapi/app/main.ts index e2996797..247eeff0 100644 --- a/electron/mapi/app/main.ts +++ b/electron/mapi/app/main.ts @@ -176,7 +176,7 @@ const shouldDarkMode = async () => { const defaultDarkModeBackgroundColor = async () => { if (await shouldDarkMode()) { - return '#1A202C' + return '#17171A' } return '#FFFFFF' } diff --git a/electron/mapi/ui/render.ts b/electron/mapi/ui/render.ts index bf6f9947..ca81ae4a 100644 --- a/electron/mapi/ui/render.ts +++ b/electron/mapi/ui/render.ts @@ -68,7 +68,7 @@ const initLoaders = () => { z-index: 10000; } [data-theme="dark"] .app-loading-wrap { - background: #1A202C; + background: #17171A; } [data-theme="dark"] .${className} > div { --_g: no-repeat radial-gradient(circle closest-side,#2D3748 90%,#2D374800); diff --git a/package.json b/package.json index 9f0ab996..129c0524 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linkandroid", - "version": "0.2.0-beta", + "version": "0.2.0", "main": "dist-electron/main/index.js", "description": "Link android to PC easily", "author": "ModStartLib", diff --git a/src/components/PageNav.vue b/src/components/PageNav.vue index 59ab8088..710bde21 100644 --- a/src/components/PageNav.vue +++ b/src/components/PageNav.vue @@ -35,7 +35,7 @@ const doUser = async () => {