From d6c328a8d2acd199761d2a384b4f01cfa7d6f190 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 2 Nov 2026 10:07:36 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=BB=9F=E4=B8=80=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=8C=BA=E5=8D=A1=E7=89=87=E3=80=81=E8=A1=A8=E5=8D=95=E5=92=8C?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/App.vue | 89 ++++++--- web/src/features/admin/PoolView.vue | 60 +++--- web/src/features/admin/SettingsView.vue | 42 ++-- web/src/features/admin/SourcesView.vue | 59 +++--- web/src/features/admin/UsersView.vue | 40 ++-- web/src/features/auth/LoginView.vue | 2 +- web/src/features/install/InstallView.vue | 25 +-- web/src/features/user/TasksView.vue | 69 ++++--- web/src/styles.css | 240 +++++++++++++++-------- 9 files changed, 388 insertions(+), 238 deletions(-) diff --git a/web/src/App.vue b/web/src/App.vue index 4ae279c..2a64d03 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -10,6 +10,7 @@ const palette = computed(() => isDark.value watch(palette, (value) => { const root = document.documentElement; + const dark = isDark.value; root.style.setProperty("--bg", value.bg); root.style.setProperty("--panel", value.panel); root.style.setProperty("--ink", value.ink); @@ -18,32 +19,72 @@ watch(palette, (value) => { root.style.setProperty("--accent", value.accent); root.style.setProperty("--sidebar", value.sidebar); root.style.setProperty("--danger", value.danger); - root.style.setProperty("--accent-soft", isDark.value ? "rgba(121, 192, 255, 0.16)" : "rgba(9, 105, 218, 0.12)"); - root.dataset.theme = isDark.value ? "dark" : "light"; + root.style.setProperty("--ok", dark ? "#3FB950" : "#1A7F37"); + root.style.setProperty("--panel-2", dark ? "#1C2129" : "#F3F5F7"); + root.style.setProperty("--hover", dark ? "rgba(230, 237, 243, 0.04)" : "rgba(13, 17, 23, 0.03)"); + root.style.setProperty("--shadow", dark ? "none" : "0 1px 2px rgba(13, 17, 23, 0.04)"); + root.style.setProperty("--accent-soft", dark ? "rgba(121, 192, 255, 0.16)" : "rgba(9, 105, 218, 0.12)"); + root.dataset.theme = dark ? "dark" : "light"; }, { immediate: true }); -const overrides = computed(() => ({ - common: { - primaryColor: "#1F6FEB", - primaryColorHover: "#388BFD", - primaryColorPressed: "#1158C7", - primaryColorSuppl: "#1F6FEB", - bodyColor: palette.value.bg, - cardColor: palette.value.panel, - textColor2: palette.value.ink, - textColor3: isDark.value ? "#C9D1D9" : "#57606A", - placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", - borderColor: isDark.value ? "#6E7681" : "#D0D7DE", - fontFamily: '"Segoe UI", "Microsoft YaHei", sans-serif', - borderRadius: "3px", - }, - Input: { - placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", - border: isDark.value ? "1px solid #6E7681" : "1px solid #D0D7DE", - borderHover: isDark.value ? "1px solid #C9D1D9" : "1px solid #57606A", - borderFocus: "1px solid #1F6FEB", - }, -})); +const overrides = computed(() => { + const line = isDark.value ? "#6E7681" : "#D0D7DE"; + const lineHover = isDark.value ? "#C9D1D9" : "#57606A"; + return { + common: { + primaryColor: "#1F6FEB", + primaryColorHover: "#388BFD", + primaryColorPressed: "#1158C7", + primaryColorSuppl: "#1F6FEB", + bodyColor: palette.value.bg, + cardColor: palette.value.panel, + modalColor: palette.value.panel, + popoverColor: palette.value.panel, + textColor2: palette.value.ink, + textColor3: isDark.value ? "#C9D1D9" : "#57606A", + placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", + borderColor: line, + fontFamily: '"Segoe UI", "Microsoft YaHei", sans-serif', + borderRadius: "4px", + heightMedium: "34px", + heightSmall: "28px", + }, + Button: { + heightMedium: "34px", + heightSmall: "28px", + paddingMedium: "0 14px", + paddingSmall: "0 10px", + fontWeightStrong: "600", + borderRadiusMedium: "4px", + }, + Input: { + heightMedium: "34px", + placeholderColor: isDark.value ? "#C9D1D9" : "#57606A", + border: `1px solid ${line}`, + borderHover: `1px solid ${lineHover}`, + borderFocus: "1px solid #1F6FEB", + }, + InternalSelection: { + heightMedium: "34px", + border: `1px solid ${line}`, + borderHover: `1px solid ${lineHover}`, + borderActive: "1px solid #1F6FEB", + borderFocus: "1px solid #1F6FEB", + }, + Dialog: { + borderRadius: "8px", + titleFontSize: "16px", + titleFontWeight: "650", + padding: "20px 24px 16px", + }, + Card: { + borderRadius: "8px", + paddingMedium: "20px 24px", + titleFontSizeMedium: "16px", + titleFontWeight: "650", + }, + }; +});