From aef30ad4b888f2be7b1cea05cdeaeea7c608cf00 Mon Sep 17 00:00:00 2001 From: hezhendong Date: Sun, 13 Apr 2025 15:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AA=97=E4=BD=93=E5=92=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E7=9A=84=E4=BA=AE=E5=BA=A6=E8=B0=83?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme.css | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/theme.css b/theme.css index 94c398c..2edf0b1 100644 --- a/theme.css +++ b/theme.css @@ -110,6 +110,28 @@ settings: description: Switch the vault profile to the default bottom. description.zh: 将仓库切换放置为默认底部。新版改为在底部,不太喜欢,这里调整为原来的左侧。 type: class-toggle + - + id: window-brightness + title: Brightness of window. + title.zh: 窗体的亮度 + description: Adjust the brightness of the entire form; + description.zh: 调整整个窗体的亮度; + type: variable-number-slider + default: 01 + min: 0 + max: 5 + step: 0.01 + - + id: editor-brightness + title: Brightness of editor. + title.zh: 窗体编辑区的亮度 + description: Adjust the brightness of the middle editor area. + description.zh: 调整中间编辑器区的亮度。 + type: variable-number-slider + default: 1 + min: 0 + max: 5 + step: 0.01 - id: windows-header title: Windows/Linux @@ -232,6 +254,8 @@ body { --callout-content-padding: 4px; --text-paragraph-gap: 3.2px; --text-line-height: 30px; + --window-brightness: 1; + --editor-brightness: 1; } body.is-mobile { @@ -341,6 +365,14 @@ body.is-mobile { * --------------------------------调整全局样式------------------------------------ */ +.app-container { + filter: brightness(var(--window-brightness)); +} + +.workspace-split.mod-root { + filter: brightness(var(--editor-brightness)); +} + hr.workspace-leaf-resize-handle { /* background-color: var(--scrollbar-thumb-color); */ }