From d01664197f1ce972116eb41e74419f84d7551f9d Mon Sep 17 00:00:00 2001 From: nxxy335 Date: Sat, 26 Sep 2026 13:28:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E5=BA=A6=E4=BC=98=E5=8C=96=E4=B8=8E=E4=B9=A6?= =?UTF-8?q?=E6=9E=B6=E9=A1=B5=E6=A0=87=E9=A2=98=E8=B0=83=E6=95=B4=20(v1.1.?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 暗黑模式 - 核对全部 19 个页面均加载含 html.dark 变量的样式表,暗黑配色全局生效 - 深色背景下人眼对低对比更敏感,调整暗黑变量提升可读性: 次要文字 --ink-3 对比度 2.43 -> 3.12,分隔线 --rule 1.23 -> 1.42, 卡片底色 --bg-raised 提亮以增强层次,--ink-2 5.63 -> 6.28 书架页 - 移除主题自带的"书架"大标题,避免与插件返回内容中的标题重复 - 保留副标题(默认"来自微信读书的同步藏书"),清理失效样式 - 页面标题配置项改为仅作用于浏览器标签,并补充说明 --- package.json | 2 +- settings.yaml | 5 +++-- src/pages/weread.astro | 24 ++---------------------- src/styles/_colors.scss | 9 +++++---- theme.yaml | 2 +- 5 files changed, 12 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 65ee4d3..a21c58d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.6", + "version": "1.1.7", "type": "module", "engines": { "node": ">=22.12.0" diff --git a/settings.yaml b/settings.yaml index 51975c2..49f0c54 100644 --- a/settings.yaml +++ b/settings.yaml @@ -652,12 +652,13 @@ spec: formSchema: - $formkit: text name: weread_page_title - label: 页面标题 + label: 页面标题(浏览器标签) placeholder: "书架" + help: 仅用于浏览器标签页标题;页面内的标题由插件返回的书架内容自带 - $formkit: text name: weread_page_subtitle label: 页面副标题 - placeholder: "我在读的书" + placeholder: "来自微信读书的同步藏书" - group: messageboard label: 留言板 formSchema: diff --git a/src/pages/weread.astro b/src/pages/weread.astro index 0ddf9c2..a4de8a9 100644 --- a/src/pages/weread.astro +++ b/src/pages/weread.astro @@ -9,21 +9,15 @@ import Layout from "../layouts/Layout.astro";
+
-

- 书架 -

- 我在读的书 + 来自微信读书的同步藏书

-
@@ -95,15 +89,6 @@ import Layout from "../layouts/Layout.astro"; margin-bottom: var(--space-2xl); } - .wi-weread__title { - font-family: var(--font-sans); - font-size: var(--text-3xl); - font-weight: 700; - color: var(--ink); - letter-spacing: var(--tracking-tight); - margin-bottom: var(--space-sm); - } - .wi-weread__subtitle { font-size: var(--text-base); color: var(--ink-3); @@ -150,9 +135,4 @@ import Layout from "../layouts/Layout.astro"; color: var(--accent); } - @media (max-width: 768px) { - .wi-weread__title { - font-size: var(--text-2xl); - } - } diff --git a/src/styles/_colors.scss b/src/styles/_colors.scss index 50ba82f..d9dc3dd 100644 --- a/src/styles/_colors.scss +++ b/src/styles/_colors.scss @@ -22,12 +22,13 @@ html.dark { --bg: #1a1614; - --bg-raised: #242018; + --bg-raised: #26211d; --bg-overlay: rgba(26, 22, 20, 0.85); --ink: #ede6de; - --ink-2: #9a8e84; - --ink-3: #5e544a; - --rule: #2e2822; + --ink-2: #a2978c; + /* 深色背景下人眼对低对比更敏感,次要文字与分隔线比浅色模式略提亮 */ + --ink-3: #6f6459; + --rule: #38322b; --accent: #e8955f; --accent-hover: #f0a872; --accent-bg: #2a1e16; diff --git a/theme.yaml b/theme.yaml index 33166b9..f7bcbcc 100644 --- a/theme.yaml +++ b/theme.yaml @@ -28,7 +28,7 @@ spec: description: 微信读书书架(依赖微信读书插件) screenshot: file: weread.html - version: "1.1.6" + version: "1.1.7" requires: ">=2.24.0" license: - name: "GPL-3.0"