From ffdd9b9d7983a3b8224873b9857470f62d6b36e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:39:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E4=B8=BB=E9=A2=98=E9=A2=9C=E8=89=B2=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=BB=98=E8=AE=A4=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E9=85=8D=E8=89=B2=20(#6964)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/images/menu-bg.svg | 1 + frontend/src/components/app-status/index.vue | 4 +- .../src/components/license-import/index.vue | 5 +- .../src/components/router-button/index.vue | 5 +- .../src/components/system-upgrade/index.vue | 38 +- .../components/v-charts/components/Pie.vue | 16 +- frontend/src/hooks/use-theme.ts | 31 +- frontend/src/layout/components/AppFooter.vue | 4 +- .../Sidebar/components/Collapse.vue | 2 +- .../components/Sidebar/components/Logo.vue | 1 + .../src/layout/components/Sidebar/index.vue | 6 +- frontend/src/layout/index.vue | 2 +- frontend/src/store/interface/index.ts | 2 +- frontend/src/store/modules/global.ts | 8 +- frontend/src/styles/common.scss | 5 +- frontend/src/styles/element-dark.scss | 492 +++++++----------- frontend/src/styles/element.scss | 41 +- frontend/src/utils/theme.ts | 8 + frontend/src/utils/theme/tool.ts | 59 --- frontend/src/utils/xpack.ts | 22 +- frontend/src/views/home/app/index.vue | 2 +- .../views/host/terminal/terminal/index.vue | 2 +- .../src/views/login/components/login-form.vue | 31 ++ frontend/src/views/setting/license/index.vue | 8 +- frontend/src/views/setting/panel/index.vue | 88 ++-- .../views/setting/panel/theme-color/index.vue | 226 ++++++++ 26 files changed, 631 insertions(+), 478 deletions(-) create mode 100644 frontend/src/assets/images/menu-bg.svg create mode 100644 frontend/src/utils/theme.ts delete mode 100644 frontend/src/utils/theme/tool.ts create mode 100644 frontend/src/views/setting/panel/theme-color/index.vue diff --git a/frontend/src/assets/images/menu-bg.svg b/frontend/src/assets/images/menu-bg.svg new file mode 100644 index 000000000..cf679075e --- /dev/null +++ b/frontend/src/assets/images/menu-bg.svg @@ -0,0 +1 @@ + diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index 149e18b4d..4387f0c7b 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -88,9 +88,9 @@