Skip to content

fix(workbench): code text and quick launcher hints follow a theme change - #6848

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/theme-following-code-text
Nov 13, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/theme-following-code-text

Conversation

@UncertaintyDeterminesYou4ndMe

Copy link
Copy Markdown
Contributor

Cause

CodeText in ToolReader.tsx computed its text color once, when the component was made. Theme colors in C are getters that read the current scheme, so a value captured in a const stays at the scheme in force at that time. After macOS switched from dark to light (for example with Appearance set to Auto), Shell commands, output and read-file text kept the dark theme's text color and read as faint gray on the light panel. The $ prompt beside them reads C.muted when drawn, so it changed correctly, which made the difference visible on one line.

QuickFooter in QuickBar.tsx captured its hint style the same way.

Change

Both colors are now functions read when the text is drawn.

AI use

Diagnosis and the patch were done with Claude Code (Claude Opus 5.5) from a screenshot of the faint text: it matched the colors to the dark theme's values, found the captured constant, and searched the workbench for the same pattern. I checked the fix on a local build by switching the system appearance.

CodeText computed its color once when the text was made, and QuickFooter
did the same for its hint style. After a switch from dark to light the
text kept the dark theme's colors and read faint on the light panel.
Both now read the color when drawn.
@M4n5ter
M4n5ter merged commit cd1a6d8 into rust-preview Nov 13, 2026
26 of 31 checks passed
@M4n5ter
M4n5ter deleted the fix/theme-following-code-text branch November 13, 2026 03:21
ggbdpq added a commit to ggbdpq/maka that referenced this pull request Nov 24, 2026
- 判定帖 7081644813(R2 车道):七用户逐一点名+v0.1.4322 升级指引+分支资产留档
- 判例:同根因相邻 issue 的无声收编对照(apache#6848 与 apache#4978 零互引)
- 索引 01-卷08 行转 open-已收编;README 工作集 150→149(档1 28→27);编年补判定+两日终账
- docs_lint 阻断 177 与基线持平
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