@klarkxy/dsh-font 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +38 -0
- package/README.md +19 -19
- package/package.json +4 -4
- package/docs/README.zh-CN.md +0 -38
package/README.en.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Font
|
|
2
|
+
|
|
3
|
+
<!-- release-state-note -->
|
|
4
|
+
|
|
5
|
+
[简体中文](README.md) / English
|
|
6
|
+
|
|
7
|
+
Customize the interface, conversation, code and terminal fonts and font sizes of the DeepSeek Harness Web GUI.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
dsh plugin --profile web add @klarkxy/dsh-font
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Replace `web` with your profile name, then restart the profile or reload the page.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
After installing and enabling the plugin, open **Settings → Font**. While it is active, the native **Font size** row in **Settings → General** is hidden so all typography controls live in one place; disabling or uninstalling the plugin restores the native row.
|
|
22
|
+
|
|
23
|
+
- **Interface font**: applies to all interface text, including the conversation while **Conversation font** follows it. Pick a preset, choose an installed system font, or select **Custom…** to enter a full `font-family` stack (leave empty to restore the default).
|
|
24
|
+
- **Conversation font** and **Font size**: sets a separate font for conversation messages and the input box (defaults to **Same as interface font**, useful for reading long text in a serif face) along with the conversation text size.
|
|
25
|
+
- **Code font** and **Code font size**: applies to code blocks, inline code, and tool output.
|
|
26
|
+
- **Terminal font** and **Terminal font size**: applies to the sidebar terminal, independent of the code font.
|
|
27
|
+
- **System font picker**: click **Load system fonts** (which becomes **Reload system fonts** once loaded) to choose from fonts installed on this computer, or reload after installing new fonts.
|
|
28
|
+
- **Sync and reset**: changes apply immediately and stay in sync with DSH settings, including desktop `Ctrl/⌘±` font-size shortcuts (adjusting all three sizes together). Select **Default** to restore an individual font; **Reset fonts** resets all font choices without touching sizes, and **Reset font sizes** restores all three default sizes without touching fonts.
|
|
29
|
+
|
|
30
|
+
## Limitations
|
|
31
|
+
|
|
32
|
+
- **Browser support**: **Load system fonts** is supported only in Chromium-based browsers and prompts for permission. Browser enumeration may omit fonts installed only for the current user; you can still type any font name manually under **Custom…**.
|
|
33
|
+
- **Persistence and devices**: interface, code, and terminal fonts plus all font sizes are saved by DSH; the conversation font is saved in the current browser only. Every machine where you open the GUI must have the chosen fonts installed.
|
|
34
|
+
- **No bundled font files**: the plugin uses fonts already installed on your computer and bundles no font files of its own.
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
[SATA License 2.1](LICENSE)
|
package/README.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 字体
|
|
2
2
|
|
|
3
3
|
<!-- release-state-note -->
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
简体中文 / [English](README.en.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
自定义 DeepSeek Harness Web GUI 的界面字体、对话字体、代码与终端字体及字号。
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## 安装
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
dsh plugin --profile web add @klarkxy/dsh-font
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
把 `web` 换成你的 profile 名,安装后重启 profile 或刷新页面。
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## 使用
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
安装并启用后,打开 **设置 → 字体**。安装期间,**设置 → 通用** 里的原生「字号大小」行会被收起,同类控件集中在这个页面;停用或卸载插件后,原生行会自动恢复。
|
|
22
22
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
23
|
+
- **界面字体**:作用于整个界面的文字;对话字体设为「跟随界面字体」时也会跟随它。可选择预设字体、从本机系统字体中挑选,或选「自定义…」手动输入完整的 `font-family` 字体栈(留空恢复默认)。
|
|
24
|
+
- **对话字体**与**字号大小**:单独设置对话区消息和输入框的字体(默认「跟随界面字体」,可单设为衬线体等适合长文阅读的字体),以及会话内容的字号大小。
|
|
25
|
+
- **代码字体**与**代码字号**:作用于代码块、行内代码与工具输出。
|
|
26
|
+
- **终端字体**与**终端字号**:作用于侧栏终端,与代码字体独立。
|
|
27
|
+
- **读取系统字体**:点击「读取系统字体」(加载后变为「重新读取系统字体」)即可在下拉列表中选择本机已安装的字体;新装字体后可点击重新读取刷新列表。
|
|
28
|
+
- **同步与重置**:所有改动立即生效并与 DSH 设置同步,包括桌面端 `Ctrl/⌘±` 字号快捷键(同时调整三项字号)。下拉选择「默认」可恢复单项原字体;「恢复默认字体」重置所有字体选择而不改字号,「恢复默认字号」恢复三项默认字号而不改字体。
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
## 主要限制
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
- **系统字体权限与范围**:「读取系统字体」仅在 Chromium 系浏览器中可用,首次使用需浏览器授权。浏览器枚举列表可能不包含仅安装到当前用户的字体,此时仍可通过「自定义…」手动输入字体名使用。
|
|
33
|
+
- **存储与跨设备**:界面、代码、终端字体及全部字号保存在 DSH 设置中;对话字体仅保存在当前浏览器。在不同设备打开界面时,每台设备都需要安装所选字体。
|
|
34
|
+
- **不附带字体文件**:插件直接使用本机已安装的字体,本身不附带任何字体文件。
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
- The interface, code and terminal fonts and all sizes are saved by DSH; the conversation font is saved in the current browser. Every computer where you open the GUI needs the chosen fonts installed.
|
|
34
|
-
- The plugin uses fonts already installed on your computer and bundles no font files of its own.
|
|
35
|
-
|
|
36
|
-
## License
|
|
36
|
+
## 许可证
|
|
37
37
|
|
|
38
38
|
[SATA License 2.1](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klarkxy/dsh-font",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Font: customize the interface, conversation, code and terminal fonts and font sizes of the DeepSeek Harness Web GUI.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"lib",
|
|
35
35
|
"cordis.patch.yml",
|
|
36
36
|
"README.md",
|
|
37
|
-
"
|
|
37
|
+
"README.en.md",
|
|
38
38
|
"docs/preview.png",
|
|
39
39
|
"LICENSE"
|
|
40
40
|
],
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@deepseek-ai/cordis": ">=4.0.4"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@klarkxy/dsh-plugin-kit": "0.8.
|
|
64
|
+
"@klarkxy/dsh-plugin-kit": "0.8.2",
|
|
65
65
|
"@deepseek-ai/cordis": "4.1.0",
|
|
66
66
|
"react": "^18.2.0",
|
|
67
67
|
"@types/react": "18.3.31",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
"homepage": "https://klarkxy.github.io/dsh-plugins/plugins/font/",
|
|
101
101
|
"dshRelease": {
|
|
102
|
-
"contentHash": "
|
|
102
|
+
"contentHash": "ce59876b843019f0890c35082863ecd566d576fdd1321d4bc1a2bad498625df6"
|
|
103
103
|
},
|
|
104
104
|
"peerDependenciesMeta": {
|
|
105
105
|
"@deepseek-ai/cordis": {
|
package/docs/README.zh-CN.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# 字体
|
|
2
|
-
|
|
3
|
-
<!-- release-state-note -->
|
|
4
|
-
|
|
5
|
-
[English](../README.md)
|
|
6
|
-
|
|
7
|
-
自定义 DeepSeek Harness Web GUI 的界面字体、对话字体、代码与终端字体及字号。
|
|
8
|
-
|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
## 安装
|
|
12
|
-
|
|
13
|
-
```sh
|
|
14
|
-
dsh plugin --profile web add @klarkxy/dsh-font
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
把 `web` 换成你的 profile 名,安装后重启 profile 或刷新页面。
|
|
18
|
-
|
|
19
|
-
## 使用
|
|
20
|
-
|
|
21
|
-
打开「设置 → 字体」——本插件新增的独立分区。安装期间「设置 → 通用」里的原生「字号大小」一行会被收起,同样的控件集中在这一个页面;卸载或停用插件后,原生行自动恢复。
|
|
22
|
-
|
|
23
|
-
- **界面字体**:选预设、手动输入字体名,或点「读取系统字体」从本机已装字体中选择。
|
|
24
|
-
- **对话字体**和**字号大小**:对话区独立的字体(选「跟随界面字体」则沿用界面字体)与会话内容字号。
|
|
25
|
-
- **代码字体**和**代码字号**:作用于代码块、行内代码与工具输出。
|
|
26
|
-
- **终端字体**和**终端字号**:作用于侧栏终端,与代码字体独立。
|
|
27
|
-
|
|
28
|
-
改动立即生效,并与 DSH 设置保持同步——包括桌面端 Ctrl/⌘± 字号快捷键(同时调整三项字号)。选择「默认」可恢复 DSH 原字体;「恢复默认字体」重置所有字体选择、不影响字号;「恢复默认字号」恢复三项字号默认、不影响字体。
|
|
29
|
-
|
|
30
|
-
## 限制
|
|
31
|
-
|
|
32
|
-
- 「读取系统字体」在 Chromium 系浏览器中可用,首次使用需浏览器授权。
|
|
33
|
-
- 界面、代码、终端字体与全部字号由 DSH 保存;对话字体仅保存在当前浏览器。在不同电脑打开界面时,每台电脑都需安装所选字体。
|
|
34
|
-
- 插件直接使用本机已安装的字体,本身不附带任何字体文件。
|
|
35
|
-
|
|
36
|
-
## 许可证
|
|
37
|
-
|
|
38
|
-
[SATA License 2.1](../LICENSE)
|