Skip to content

fix(desktop): 字体设置对加粗字符生效 (#3459)#3569

Merged
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/3459-bold-font-family
Jun 8, 2026
Merged

fix(desktop): 字体设置对加粗字符生效 (#3459)#3569
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/3459-bold-font-family

Conversation

@Li-Charles-One

Copy link
Copy Markdown
Contributor

问题

设置中选择的字体对加粗字符(bold text)无效,加粗文本仍以默认字体渲染,未跟随用户选择的字体。

根因

styles.css:6953.settings-model-picker__option strong 强制使用了 font-family: var(--mono),覆盖了用户选择的字体。

修复

移除 .settings-model-picker__option strong 中的 font-family: var(--mono);,让模型名称等加粗文本跟随用户选择的字体设置。

测试

  • npm run typecheck 通过
  • npm run check:css 通过

Fixes #3459

移除 .settings-model-picker__option strong 中强制的 font-family: var(--mono),
让模型名称等加粗文本跟随用户选择的字体设置。
@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 8, 2026

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified check:css; dropping the hardcoded mono lets the font setting apply. Clean.

@esengine esengine merged commit c5372f5 into esengine:main-v2 Jun 8, 2026
10 checks passed
@Li-Charles-One Li-Charles-One deleted the fix/3459-bold-font-family branch June 8, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 设置中选择的字体对加粗字符不生效

2 participants