如何将Obsidian设置为全透明
麦旋风超级好吃
2023年01月13日 20:30

1. 到设置-外观,把半透明窗口勾上。

2. 打开仓库文件夹,打开.obsidian文件夹,再打开themes文件夹,找到当前主题文件夹打开,打开theme.css文件

3. 搜索body,在大括号内添加以下大括号里面的内容:

代码块
JavaScript
自动换行
复制代码
body { 
	--background-primary: #000 !important; 
	--titlebar-background: transparent !important; 
	--titlebar-background-focused: var(--titlebar-background); 
	--text-normal: #f1f1f1 !Important; 
	--workspace-background-translucent: rgba(var(--mono-rgb-0), 0.25);
} 
复制成功

4. 在大括号以外添加以下内容:

代码块
JavaScript
自动换行
复制代码
.workspace-tab-header.is-active { 
	color: #fff !Important;
} 

.workspace-leaf, 
.workspace-tab-header-container { 
	background: transparent; 
} 

.workspace-split.mod-root, 
.workspace-split.mod-root .view-content, 
.workspace-split.mod-root .view-header { 
	background: transparent; 
} 

.view-header-title-container:not(.mod-at-end):after { 
	background: transparent; 
} 

.custom-frames-frame { 
	background: transparent !important;
} 

.is-focused .workspace-leaf.mod-active .view-header { 
	background: transparent;
}
复制成功

5. 搜索--cursor-line-background,将其值设置为transparent。

6. 重启obsidian