mirror of
https://github.com/laughmaker/Zen.git
synced 2026-07-22 04:00:31 +00:00
update style settings, update windows style
This commit is contained in:
parent
c4eec09e40
commit
d7ebc7ace0
3 changed files with 119 additions and 83 deletions
76
README.md
76
README.md
|
|
@ -4,80 +4,86 @@
|
|||
|
||||
[Screenshots](#Screenshots)
|
||||
|
||||
|
||||
# <a id="Chinese">中文</a>
|
||||
|
||||
Zen 是一个专注于写作而生的现代化主题。去除了影响写作和阅读的冗余元素,大量的运用了高斯模糊效果,具有现代化的简约风格。同时针对中文用户做了专门的优化。
|
||||
|
||||
备注:
|
||||
- 在 Mac 平台,背景高斯模糊效果需要开启半透明选项。路径:设置 -> 外观 -> 半透明效果。
|
||||
- Windows 平台由于新版除除了开启半透明选项,故采用折衷的办法,在代码里内置图片来实现,如需定义,请到最后查看教程。
|
||||
- 部分参数,已可通过 Style Settings 插件进行配置。
|
||||
|
||||
- 在 Mac 平台,背景高斯模糊效果需要开启半透明选项。路径:设置 -> 外观 -> 半透明效果。
|
||||
- Windows 平台由于新版除除了开启半透明选项,故采用折衷的办法,在代码里内置图片来实现,如需定义,请到最后查看教程。
|
||||
- 部分参数,已可通过 Style Settings 插件进行配置。
|
||||
|
||||
## 一、安装
|
||||
|
||||
安装主题的步骤如下:
|
||||
- 打开Obsidian设置
|
||||
- 进入“外观”设置并点击“管理”
|
||||
- 在社区主题中搜索“Zen”,然后点击“使用”
|
||||
|
||||
- 打开 Obsidian 设置
|
||||
- 进入“外观”设置并点击“管理”
|
||||
- 在社区主题中搜索“Zen”,然后点击“使用”
|
||||
|
||||
**为了确保序号和引导线对齐,以及有更好的中文体验,请安装字体**:
|
||||
`LXGWWenKaiMono-Regular.ttf`
|
||||

|
||||

|
||||
|
||||
- 当前使用字体:https://github.com/lxgw/LxgwWenKai/releases/download/v1.510/LXGWWenKaiMono-Regular.ttf
|
||||
- 其他家族字体参考: https://github.com/lxgw/LxgwWenKai
|
||||
- 当前使用字体:https://github.com/lxgw/LxgwWenKai/releases/download/v1.510/LXGWWenKaiMono-Regular.ttf
|
||||
- 其他家族字体参考: https://github.com/lxgw/LxgwWenKai
|
||||
|
||||
## 二、特性
|
||||
|
||||
1. 窗体:背景现化化的背景高斯模糊效果;
|
||||
2. 窗体:采用留白来区分块,移除大量的线条;
|
||||
3. 目录页:采用倒三角和*来区分目录和文件,并使guideline(缩进参考线)对齐;
|
||||
3. 目录页:采用倒三角和\*来区分目录和文件,并使 guideline(缩进参考线)对齐;
|
||||
4. 标签页:采用彩色下划线指示;
|
||||
5. 编辑器页:大量的调整字间距和行间距,使编辑和阅读更舒适;
|
||||
6. 编辑器页:针对有序列表和无序列表,严格对齐guideline(缩进参考线);
|
||||
6. 编辑器页:针对有序列表和无序列表,严格对齐 guideline(缩进参考线);
|
||||
7. 标题:不同层级采用彩色显示,并增加标题序号提示;
|
||||
8. 列表:阅读模藏和编辑模式,尽可能保持一致的体验;
|
||||
9. 移动端:体验基本保持与 PC 端尽可能一致;
|
||||
10. Windows端:增加高斯模糊背景效果。
|
||||
10. Windows 端:增加高斯模糊背景效果。
|
||||
|
||||
## 三、Win 如何替换背景?
|
||||
|
||||
## 三、Win如何替换背景?
|
||||
由于 Windows 平台的限制,obsidian 官方从 1.6.7 版本,移除了背景半透明效果,所以针对 Windows 平台的实现,采用了图片的方式,不能穿透桌面壁纸。
|
||||
|
||||
如果需要更换背景图,可按如下操作:
|
||||
|
||||
1. 打开设置 -> 外观 -> 打开主题目录;
|
||||

|
||||

|
||||
2. 然后用文本编辑器,打开`zen/theme.css`文件,找到以下代码:
|
||||

|
||||

|
||||
3. 从网络上找到一张你心仪的照片,将`background: url...`这一行删除,替换为:`background: url('图片地址') repeat;`
|
||||
|
||||
|
||||
# <a id="English">English</a>
|
||||
|
||||
Zen is a modern theme designed specifically for writing. It removes redundant elements that can affect writing and reading, extensively uses Gaussian blur effects, and features a modern minimalist style. It has also been specifically optimized for Chinese users.
|
||||
|
||||
Notes:
|
||||
- On the Mac platform, the Gaussian blur effect for the background requires the translucent option to be enabled. Path: Settings -> Appearance -> Translucent Effect.
|
||||
- On the Windows platform, since the new version has removed the translucent option, a compromise method is used by embedding images in the code to achieve the effect. For definitions, please refer to the tutorial at the end.
|
||||
|
||||
- On the Mac platform, the Gaussian blur effect for the background requires the translucent option to be enabled. Path: Settings -> Appearance -> Translucent Effect.
|
||||
- On the Windows platform, since the new version has removed the translucent option, a compromise method is used by embedding images in the code to achieve the effect. For definitions, please refer to the tutorial at the end.
|
||||
|
||||
## 一、Installation
|
||||
|
||||
To install the theme
|
||||
|
||||
- Open Obsidian Settings
|
||||
- Go to Appearance and click Manage
|
||||
- Under community themes search for "Zen" and click Use
|
||||
- Open Obsidian Settings
|
||||
- Go to Appearance and click Manage
|
||||
- Under community themes search for "Zen" and click Use
|
||||
|
||||
To ensure that the numbers and guide lines are aligned, and for a better Chinese experience, please install the font:
|
||||
|
||||
`LXGWWenKaiMono-Regular.ttf`
|
||||

|
||||
|
||||
- Used Font:https://github.com/lxgw/LxgwWenKai/releases/download/v1.510/LXGWWenKaiMono-Regular.ttf
|
||||
- Other Font: https://github.com/lxgw/LxgwWenKai
|
||||

|
||||
|
||||
- Used Font:https://github.com/lxgw/LxgwWenKai/releases/download/v1.510/LXGWWenKaiMono-Regular.ttf
|
||||
- Other Font: https://github.com/lxgw/LxgwWenKai
|
||||
|
||||
## 二、Features
|
||||
|
||||
1. Windows: The background features a modernized Gaussian blur effect.
|
||||
2. Windows: Utilizes whitespace to distinguish blocks, removing a large number of lines.
|
||||
3. Table of Contents Page: Employs inverted triangles and asterisks (*) to differentiate between directories and files, and aligns the guideline (indentation reference line).
|
||||
3. Table of Contents Page: Employs inverted triangles and asterisks (\*) to differentiate between directories and files, and aligns the guideline (indentation reference line).
|
||||
4. Tab Page: Uses colored underlines for indication.
|
||||
5. Editor Page: Extensive adjustments to letter spacing and line spacing are made to enhance the comfort of editing and reading.
|
||||
6. Editor Page: For ordered and unordered lists, the guideline (indentation reference line) is strictly aligned.
|
||||
|
|
@ -86,7 +92,6 @@ To ensure that the numbers and guide lines are aligned, and for a better Chinese
|
|||
9. Mobile: The experience is kept as consistent as possible with the PC version.
|
||||
10. Windows: Adds a Gaussian blur background effect.
|
||||
|
||||
|
||||
## 三、How to replace backgroundImage in Windows?
|
||||
|
||||
Due to the limitations of the Windows platform, the official Obsidian removed the semi-transparent background effect starting from version 1.6.7. Therefore, for the implementation on the Windows platform, an image-based approach is used, which does not allow the background to be transparent to the desktop wallpaper.
|
||||
|
|
@ -94,25 +99,27 @@ Due to the limitations of the Windows platform, the official Obsidian removed th
|
|||
If you need to change the background image, follow these steps:
|
||||
|
||||
1. Open Settings -> Appearance -> Open Theme Directory;
|
||||

|
||||

|
||||
2. Then, using a text editor, open the `zen/theme.css file` and locate the following code:)
|
||||

|
||||

|
||||
3. Find a photo you like from the internet, delete the line background: url..., and replace it with: background: url('image address') repeat;
|
||||
|
||||
|
||||
# <a id="Screenshots">Screenshots</a>
|
||||
## Mac
|
||||
|
||||
## Mac
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Win
|
||||
## Win
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Mobile
|
||||
|
||||

|
||||

|
||||
|
||||
|
|
@ -127,4 +134,3 @@ This theme modifies significant parts of the Obsidian interface, so it may break
|
|||
# License
|
||||
|
||||
Zen for Obsidian apps is licensed under the MIT License which allows you to modify and redistribute the code, however you must preserve the copyright and license notice in your CSS file. This includes any code you may extract as standalone snippets.
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
126
theme.css
126
theme.css
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue