mirror of
https://github.com/laughmaker/Zen.git
synced 2026-07-22 04:00:31 +00:00
增加窗体和编辑器的亮度调节
This commit is contained in:
parent
32a931d38f
commit
aef30ad4b8
1 changed files with 32 additions and 0 deletions
32
theme.css
32
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); */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue