Fix issue 11954: [Dark Mode] ToolTip is not in dark mode after enabled SystemColorMode.Dark#14381
Open
SimonZhao888 wants to merge 3 commits intodotnet:mainfrom
Open
Fix issue 11954: [Dark Mode] ToolTip is not in dark mode after enabled SystemColorMode.Dark#14381SimonZhao888 wants to merge 3 commits intodotnet:mainfrom
SimonZhao888 wants to merge 3 commits intodotnet:mainfrom
Conversation
…d SystemColorMode.Dark
Contributor
There was a problem hiding this comment.
Pull request overview
Adds dark mode theming for WinForms ToolTip windows when Application.SetColorMode(SystemColorMode.Dark) is enabled, aligning tooltip rendering with the rest of the app’s dark mode experience (issue #11954).
Changes:
- Apply a dark-mode window theme to the tooltip HWND during handle creation when dark mode is enabled.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/System.Windows.Forms/System/Windows/Forms/ToolTip/ToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/System/Windows/Forms/ToolTip/ToolTip.cs
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14381 +/- ##
===================================================
+ Coverage 77.31249% 77.31573% +0.00324%
===================================================
Files 3265 3265
Lines 644447 644451 +4
Branches 47631 47632 +1
===================================================
+ Hits 498238 498262 +24
+ Misses 142512 142499 -13
+ Partials 3697 3690 -7
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
LeafShi1
reviewed
Mar 12, 2026
src/System.Windows.Forms/System/Windows/Forms/ToolTip/ToolTip.cs
Outdated
Show resolved
Hide resolved
ricardobossan
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11954
Proposed changes
Customer Impact
Regression?
Risk
Screenshots
Before
After
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow