feat(font): 新增系统字体枚举与全局字体配置能力

- 新增 Go 侧已安装字体扫描接口,支持前端读取系统真实字体列表
- 接入 Wails 字体查询导出,补齐 App.d.ts 与 App.js 调用声明
- 新增字体选项构建与匹配工具,区分 UI 字体与等宽字体候选
- 外观设置支持按平台加载字体列表,并支持搜索匹配与默认字体回退
- Store 增加自定义 UI 字体与代码字体配置,持久化全局字体选择
This commit is contained in:
Syngnat
2026-05-29 14:04:21 +08:00
parent f5f5bbf5eb
commit a7f8ce36df
11 changed files with 685 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
:root {
--gn-font-sans: "Inter", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
--gn-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html, body, #root {
height: 100%;
margin: 0;
@@ -10,6 +15,21 @@ body, #root {
border-radius: var(--gonavi-border-radius); /* Slightly rounded app window corners */
}
body,
button,
input,
textarea,
select {
font-family: var(--gn-font-sans);
}
code,
pre,
kbd,
samp {
font-family: var(--gn-font-mono);
}
/* 侧边栏 Tree 样式优化 */
.ant-tree .ant-tree-treenode {
width: 100%;