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:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
|
||||
+3
-2
@@ -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:
|
||||
|
||||
+2
-22
@@ -9,21 +9,15 @@ import Layout from "../layouts/Layout.astro";
|
||||
|
||||
<section class="wi-weread">
|
||||
<div class="wi-container">
|
||||
<!-- 标题由插件返回的书架内容自带,主题不再重复输出 -->
|
||||
<div class="wi-weread__header">
|
||||
<h1
|
||||
class="wi-weread__title"
|
||||
th:text="${theme.config?.weread?.weread_page_title ?: '书架'}"
|
||||
>
|
||||
书架
|
||||
</h1>
|
||||
<p
|
||||
class="wi-weread__subtitle"
|
||||
th:if="${theme.config?.weread?.weread_page_subtitle}"
|
||||
th:text="${theme.config?.weread?.weread_page_subtitle}"
|
||||
>
|
||||
我在读的书
|
||||
来自微信读书的同步藏书
|
||||
</p>
|
||||
<span class="wi-page-accent"></span>
|
||||
</div>
|
||||
|
||||
<th:block th:if="${pluginFinder.available('halo-weread-plugin')}">
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user