From fb9fe6eb2e85182d4bec3454be0c0265fa974525 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Wed, 23 Apr 2025 15:21:07 +0800 Subject: [PATCH] update --- .../frontend/src/components/AddProxyForm.vue | 211 ++++-------------- .../frontend/src/components/ProxyList.vue | 96 +++----- .../appearance/config/default-themes.ts | 1 + packages/frontend/src/style.css | 2 + packages/frontend/src/views/ProxiesView.vue | 47 +--- 5 files changed, 85 insertions(+), 272 deletions(-) diff --git a/packages/frontend/src/components/AddProxyForm.vue b/packages/frontend/src/components/AddProxyForm.vue index 8513e54..17e68bd 100644 --- a/packages/frontend/src/components/AddProxyForm.vue +++ b/packages/frontend/src/components/AddProxyForm.vue @@ -123,48 +123,59 @@ const handleSubmit = async () => { diff --git a/packages/frontend/src/components/ProxyList.vue b/packages/frontend/src/components/ProxyList.vue index 6869a32..8d22348 100644 --- a/packages/frontend/src/components/ProxyList.vue +++ b/packages/frontend/src/components/ProxyList.vue @@ -29,35 +29,43 @@ const formatTimestamp = (timestamp: number | null): string => { diff --git a/packages/frontend/src/features/appearance/config/default-themes.ts b/packages/frontend/src/features/appearance/config/default-themes.ts index 8839094..45c0e14 100644 --- a/packages/frontend/src/features/appearance/config/default-themes.ts +++ b/packages/frontend/src/features/appearance/config/default-themes.ts @@ -51,6 +51,7 @@ export const defaultUiTheme: Record = { '--input-focus-glow': 'var(--link-active-color)', /* 输入框聚焦光晕值 */ '--ssh-tab-active': 'transparent', /* Added SSH Tab Active */ '--ssh-tab-background': 'transparent', /* Added SSH Tab Background */ + '--overlay-bg-color': 'rgba(0, 0, 0, 0.6)', /* Added Overlay Background */ // End added variables '--font-family-sans-serif': 'sans-serif', '--base-padding': '1rem', diff --git a/packages/frontend/src/style.css b/packages/frontend/src/style.css index 4aa432a..13b2ea0 100644 --- a/packages/frontend/src/style.css +++ b/packages/frontend/src/style.css @@ -31,6 +31,7 @@ /* --color-input-focus-glow: var(--input-focus-glow); /* Glow might need direct var() use in shadow utilities */ --color-ssh-tab-active: var(--ssh-tab-active); --color-ssh-tab-background: var(--ssh-tab-background); + --color-overlay: var(--overlay-bg-color); /* Added Overlay Background */ } /* 全局样式和 CSS 变量定义 */ @@ -60,6 +61,7 @@ --input-focus-glow: var(--link-active-color); /* 输入框聚焦光晕值 */ --ssh-tab-active: transparent; /* Corrected value */ --ssh-tab-background: transparent; /* Corrected value */ + --overlay-bg-color: rgba(0, 0, 0, 0.6); /* Added Overlay Background Color */ /* 字体 */ --font-family-sans-serif: sans-serif; /* 默认字体 */ diff --git a/packages/frontend/src/views/ProxiesView.vue b/packages/frontend/src/views/ProxiesView.vue index bbdc2cc..d6121c2 100644 --- a/packages/frontend/src/views/ProxiesView.vue +++ b/packages/frontend/src/views/ProxiesView.vue @@ -42,10 +42,16 @@ const closeForm = () => {