vault backup: 2026-03-19 23:02:49
This commit is contained in:
5
.obsidian/appearance.json
vendored
5
.obsidian/appearance.json
vendored
@@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
"theme": "obsidian",
|
"theme": "obsidian",
|
||||||
"accentColor": "#5c82f5"
|
"accentColor": "#5c82f5",
|
||||||
|
"enabledCssSnippets": [
|
||||||
|
"PDF-DarkMode"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
14
.obsidian/snippets/PDF-DarkMode.css
vendored
Normal file
14
.obsidian/snippets/PDF-DarkMode.css
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
/* 针对新版 Obsidian:在深色模式下强制反转 PDF 页面和画布 */
|
||||||
|
|
||||||
|
.theme-dark .workspace-leaf-content[data-type="pdf"] .page,
|
||||||
|
.theme-dark .internal-embed[src$=".pdf"] .page,
|
||||||
|
.theme-dark .pdf-viewer canvas,
|
||||||
|
.theme-dark .pdf-embed canvas {
|
||||||
|
filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(110%) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 顺便把 PDF 页面之间的缝隙背景也调暗,防刺眼 */
|
||||||
|
.theme-dark .workspace-leaf-content[data-type="pdf"] .view-content,
|
||||||
|
.theme-dark .pdf-container {
|
||||||
|
background-color: #1e1e1e !important;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user