feat: 暗黑模式对比度优化与书架页标题调整 (v1.1.7)

暗黑模式
- 核对全部 19 个页面均加载含 html.dark 变量的样式表,暗黑配色全局生效
- 深色背景下人眼对低对比更敏感,调整暗黑变量提升可读性:
  次要文字 --ink-3 对比度 2.43 -> 3.12,分隔线 --rule 1.23 -> 1.42,
  卡片底色 --bg-raised 提亮以增强层次,--ink-2 5.63 -> 6.28

书架页
- 移除主题自带的"书架"大标题,避免与插件返回内容中的标题重复
- 保留副标题(默认"来自微信读书的同步藏书"),清理失效样式
- 页面标题配置项改为仅作用于浏览器标签,并补充说明
This commit is contained in:
2026-09-26 13:28:41 +08:00
parent bcc221c3bd
commit d01664197f
5 changed files with 12 additions and 30 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"version": "1.1.6", "version": "1.1.7",
"type": "module", "type": "module",
"engines": { "engines": {
"node": ">=22.12.0" "node": ">=22.12.0"
+3 -2
View File
@@ -652,12 +652,13 @@ spec:
formSchema: formSchema:
- $formkit: text - $formkit: text
name: weread_page_title name: weread_page_title
label: 页面标题 label: 页面标题(浏览器标签)
placeholder: "书架" placeholder: "书架"
help: 仅用于浏览器标签页标题;页面内的标题由插件返回的书架内容自带
- $formkit: text - $formkit: text
name: weread_page_subtitle name: weread_page_subtitle
label: 页面副标题 label: 页面副标题
placeholder: "我在读的书" placeholder: "来自微信读书的同步藏书"
- group: messageboard - group: messageboard
label: 留言板 label: 留言板
formSchema: formSchema:
+2 -22
View File
@@ -9,21 +9,15 @@ import Layout from "../layouts/Layout.astro";
<section class="wi-weread"> <section class="wi-weread">
<div class="wi-container"> <div class="wi-container">
<!-- 标题由插件返回的书架内容自带,主题不再重复输出 -->
<div class="wi-weread__header"> <div class="wi-weread__header">
<h1
class="wi-weread__title"
th:text="${theme.config?.weread?.weread_page_title ?: '书架'}"
>
书架
</h1>
<p <p
class="wi-weread__subtitle" class="wi-weread__subtitle"
th:if="${theme.config?.weread?.weread_page_subtitle}" th:if="${theme.config?.weread?.weread_page_subtitle}"
th:text="${theme.config?.weread?.weread_page_subtitle}" th:text="${theme.config?.weread?.weread_page_subtitle}"
> >
我在读的书 来自微信读书的同步藏书
</p> </p>
<span class="wi-page-accent"></span>
</div> </div>
<th:block th:if="${pluginFinder.available('halo-weread-plugin')}"> <th:block th:if="${pluginFinder.available('halo-weread-plugin')}">
@@ -95,15 +89,6 @@ import Layout from "../layouts/Layout.astro";
margin-bottom: var(--space-2xl); 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 { .wi-weread__subtitle {
font-size: var(--text-base); font-size: var(--text-base);
color: var(--ink-3); color: var(--ink-3);
@@ -150,9 +135,4 @@ import Layout from "../layouts/Layout.astro";
color: var(--accent); color: var(--accent);
} }
@media (max-width: 768px) {
.wi-weread__title {
font-size: var(--text-2xl);
}
}
</style> </style>
+5 -4
View File
@@ -22,12 +22,13 @@
html.dark { html.dark {
--bg: #1a1614; --bg: #1a1614;
--bg-raised: #242018; --bg-raised: #26211d;
--bg-overlay: rgba(26, 22, 20, 0.85); --bg-overlay: rgba(26, 22, 20, 0.85);
--ink: #ede6de; --ink: #ede6de;
--ink-2: #9a8e84; --ink-2: #a2978c;
--ink-3: #5e544a; /* 深色背景下人眼对低对比更敏感,次要文字与分隔线比浅色模式略提亮 */
--rule: #2e2822; --ink-3: #6f6459;
--rule: #38322b;
--accent: #e8955f; --accent: #e8955f;
--accent-hover: #f0a872; --accent-hover: #f0a872;
--accent-bg: #2a1e16; --accent-bg: #2a1e16;
+1 -1
View File
@@ -28,7 +28,7 @@ spec:
description: 微信读书书架(依赖微信读书插件) description: 微信读书书架(依赖微信读书插件)
screenshot: screenshot:
file: weread.html file: weread.html
version: "1.1.6" version: "1.1.7"
requires: ">=2.24.0" requires: ">=2.24.0"
license: license:
- name: "GPL-3.0" - name: "GPL-3.0"