From e497721e9b3d03de07a61808012d0d6e04fd9663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=97=E5=A4=A7?= <454690789@qq.com> Date: Tue, 31 Oct 2023 16:40:08 +0800 Subject: [PATCH] =?UTF-8?q?perf(darkMode):=20=E4=BC=98=E5=8C=96=E6=B7=B1?= =?UTF-8?q?=E8=89=B2=E6=A8=A1=E5=BC=8F=E9=A2=9C=E8=89=B2=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E6=B3=95;=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=B8=BB=E9=A2=98=E6=9B=B4=E6=96=B0=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=A2=9C=E8=89=B2=E6=96=B9=E6=B3=95=E5=92=8C?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=20(#3216)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf(darkMode): 优化深色模式颜色切换相关方法; 增加根据主题更新自定义颜色方法和示例 * revert: 撤销notify组件的样式修改测试 * chore: color pattern error * chore(theme): remove dead code --------- Co-authored-by: 苗大 Co-authored-by: invalid w --- .../Application/src/AppDarkModeToggle.vue | 21 +-- src/design/color.less | 26 ++-- src/logics/initAppConfig.ts | 19 +-- src/logics/theme/dark.ts | 48 +++++++ src/logics/theme/updateBackground.ts | 122 ------------------ 5 files changed, 73 insertions(+), 163 deletions(-) diff --git a/src/components/Application/src/AppDarkModeToggle.vue b/src/components/Application/src/AppDarkModeToggle.vue index 3a851786e62..05d6ee81763 100644 --- a/src/components/Application/src/AppDarkModeToggle.vue +++ b/src/components/Application/src/AppDarkModeToggle.vue @@ -8,18 +8,11 @@