Skip to content

Fix issue 11939: [Dark Mode]HelpProvider text color is barely visible - #14338

Merged
SimonZhao888 merged 1 commit into
dotnet:mainfrom
SimonZhao888:fix_issue_11939
Jul 1, 2026
Merged

SimonZhao888 merged 1 commit into
dotnet:mainfrom
SimonZhao888:fix_issue_11939

Conversation

@SimonZhao888

@SimonZhao888 SimonZhao888 commented Mar 2, 2026 •

Copy link
Copy Markdown
Member

Fixes #11939

Proposed changes

  • Modify the clrForeground property of the HH_POPUP struct instance to ensure that the font color of the pop-up help bubble matches the WinForms theme font color.

Customer Impact

  • HelpProvider text color is clearly visible.

Regression?

  • Yes

Risk

  • Min

Screenshots

Before

image image

After

2026-03-02.095343.mp4
2026-03-02.095705.mp4

Test methodology

  • Manually

Test environment(s)

  • 11.0.100-preview.1.26104.118
Microsoft Reviewers: Open in CodeFlow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #11939 where the HelpProvider popup text color was barely visible in WinForms dark mode. Previously, clrForeground in the HH_POPUP struct was set to 0xFFFFFFFF (commented as "Ignore" — a "use default" sentinel), which caused the HtmlHelp API to use a default foreground color that didn't adapt to the WinForms theme. The fix replaces this with SystemColors.WindowText, consistent with how clrBackground was already set using SystemColors.Window.

Changes:

  • Replace the clrForeground "ignore" sentinel value in HH_POPUP with SystemColors.WindowText to ensure the popup text color matches the current WinForms theme (including dark mode).

@github-actions github-actions Bot added area-DarkMode Issues relating to Dark Mode feature and removed needs-area-label labels Mar 2, 2026
@codecov

codecov Bot commented Mar 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.31714%. Comparing base (3d190f7) to head (7999788).
⚠️ Report is 55 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #14338         +/-   ##
===================================================
+ Coverage   77.25545%   77.31714%   +0.06168%     
===================================================
  Files           3280        3265         -15     
  Lines         645315      644447        -868     
  Branches       47780       47631        -149     
===================================================
- Hits          498541      498268        -273     
+ Misses        143088      142482        -606     
- Partials        3686        3697         +11     
Flag Coverage Δ
Debug 77.31714% <100.00000%> (+0.06168%) ⬆️
integration 19.14767% <0.00000%> (+0.06367%) ⬆️
production 52.29198% <100.00000%> (+0.07361%) ⬆️
test 97.41580% <ø> (-0.00047%) ⬇️
unit 49.66242% <100.00000%> (+0.06036%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SimonZhao888 SimonZhao888 added the waiting-review This item is waiting on review by one or more members of team label Apr 22, 2026
@LeafShi1 LeafShi1 added this to the 11.0-preview7 milestone Jul 1, 2026
@SimonZhao888
SimonZhao888 merged commit a927792 into dotnet:main Jul 1, 2026
14 checks passed
@SimonZhao888
SimonZhao888 deleted the fix_issue_11939 branch July 1, 2026 03:07
@dotnet-policy-service dotnet-policy-service Bot removed the waiting-review This item is waiting on review by one or more members of team label Jul 1, 2026
@LeafShi1 LeafShi1 added the releasenotes-candidate This issue is a candidate to be mentioned in the release notes, if the respective PR fixed it. label Jul 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-DarkMode Issues relating to Dark Mode feature releasenotes-candidate This issue is a candidate to be mentioned in the release notes, if the respective PR fixed it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dark Mode]HelpProvider text color is barely visible

5 participants