在用了,太喜欢啦!
我的windows r7+3060明显卡顿,但是性能占用很低,m1的macbookair却完全不卡
我只想要它的卡片布局和颜色,所以我把除它们之外的css代码都删了(主题卸载了,只留了一个css文件,在外观-css代码片段中使用),这样就完全不会卡顿。但是我是css新手,用了整整一个下午才弄好。
这是保留的效果:
求拔下来的 CSS 片段分享啊
稍等,代码太长了放不进去,我把我摘出来部分的注释写下来。等一下在这条回复中更新。
代码(开头的settings我就只保留了这几条,后面的都是与原代码相同的代码注释了,你对应着摘一下):
/* @settings
name: Theme Info
id: Info
settings:
-
id: Extras-info
description: "🎨 Appearance presets: [get presets here](https://github.com/Akifyss/obsidian-border/blob/main/presets.md), click on “Import” in the top right corner and restart obsidian. <br> <br> 📭 If you have problems, please submit [issues](https://github.com/Akifyss/obsidian-border/issues) or [discuss](https://github.com/Akifyss/obsidian-border/discussions) on Github<br> <br> 🔼 View recent updates: [Github Commit History](https://github.com/Akifyss/obsidian-border/commits/main)"
description.zh: "🎨 外观预设:[在此获取预设](https://github.com/Akifyss/obsidian-border/blob/main/presets.md),点击右上角“Import”导入预设,重启obsidian来生效. <br> <br> 📭 如果遇到问题,可以在Github上 [提交issues](https://github.com/Akifyss/obsidian-border/issues) 或[讨论](https://github.com/Akifyss/obsidian-border/discussions)<br> <br> 🔼 查看最近更新:[Github Commit History](https://github.com/Akifyss/obsidian-border/commits/main)"
type: info-text
markdown: true
*/
/* @settings
name: Appearance (light mode)
id: Appearance-light
settings:
-
id: Presets-info-light
description: "[Presets (light)](https://github.com/Akifyss/obsidian-border/blob/main/presets.md#light-mode) | Before importing, it is recommended to reset this entry to default / Remove preset↗️"
description.zh: "[预设(亮色)](https://github.com/Akifyss/obsidian-border/blob/main/presets.md#light-mode) | 导入前,推荐先将此条目重设为默认 / 移除预设↗️ "
type: info-text
markdown: true
-
id: card-layout-open-light
title: Enable card layout(light mode)
title.zh: 启用 卡片式布局(亮色模式)
type: class-toggle
*/
/* @settings
name: Appearance (dark mode)
id: Appearance-dark
settings:
-
id: Presets-info-dark
description: "[Presets (dark)](https://github.com/Akifyss/obsidian-border/blob/main/presets.md#light-mode) | Before importing, it is recommended to reset this entry to default / Remove preset↗️"
description.zh: "[预设(暗色)](https://github.com/Akifyss/obsidian-border/blob/main/presets.md#dark-mode) | 导入前,推荐先将此条目重设为默认 / 移除预设↗️ "
type: info-text
markdown: true
-
id: card-layout-open-dark
title: Enable card layout(dark mode)
title.zh: 启用 卡片式布局(暗色模式)
type: class-toggle
*/
/* color */
/*----------workspace----------*/
/* ====== background ===== */
/* background - transparent */
/* background - underlying */
/* foreground - underlying */
/* background - mod-left */
/* --- */
/* background - mod-right */
/* --- */
/* background - mod-root */
/* --- */
/* ====== Layout ===== */
/* default Layout*/
/* card layout light*/
/* card layout dark*/
/* scrollbar */
/* ====== titlebar ===== */
/* ====== status bar====== */
/* ====== ribbon====== */
/* tab */
/* tab layout */
/* tab style */
/* divider */
/* ====== divider vertical height ===== */
/* vault profile */
/* ====== workspace mod side====== */
/*nav-buttons left align*/
/*icons in pane*/
/* ====== icon ====== */
/* ====== icon replace ====== */
/*calendar*/
我摘了两遍,但还是有一些没看懂是具体修改了哪里,只是删掉之后似乎没什么变化,这种也都删掉了。
所以可能有个别位置比较隐蔽的修改漏掉了,不过我觉得大部分Obsidian自带的就很好了。