Skip to content

refactor(settings): 字体选择器触发器并入语言/主题共享样式 - #577

Merged
vastsa merged 1 commit into
mainfrom
refactor/settings-font-picker-share-styles
Sep 18, 2026
Merged

vastsa merged 1 commit into
mainfrom
refactor/settings-font-picker-share-styles

Conversation

@vastsa

@vastsa vastsa commented Sep 18, 2026

Copy link
Copy Markdown
Owner

问题

#565 合入后,字体 pill 的 hug 宽度规则仍是一份独立拷贝,和语言 / 主题 / SettingsMenuSelect 会漂移。默认项搜索 haystack 对非 default 项有冗余 OR。

改动

  • .settings-font* 触发器规则并入 Appearance 共享选择器列表。
  • 默认项搜索改为单一 haystack:${localized} ${catalog}
  • 测试锁死共享选择器,避免再拆回私有拷贝。

验证

  • node --test apps/desktop/test/settings-font-picker.test.mjs apps/desktop/test/settings-general.test.mjs apps/desktop/test/settings-language-picker.test.mjs apps/desktop/test/settings-theme-picker.test.mjs — 35/35

未跑 verify:ui:*(本任务未要求)。未改链接打开目标。

Follow-up of #565.

Fold the font pill into the shared Appearance picker rules so hug-width
and hover cannot drift, and search the localized system-default label
plus the English catalog name through one haystack.
Copilot AI lite review requested due to automatic review settings September 18, 2026 08:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit ea6ff23 into main Sep 18, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants