-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixed ToolTip Fluent Style and Resources #10863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ToolTip Fluent Style and Resources #10863
Conversation
There was a problem hiding this comment.
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 several layout and resource naming issues with the ToolTip style in the Fluent themes, ensuring that the ToolTip appears correctly across light, high-contrast, and dark modes. Key changes include renaming and adding new resource keys for ToolTip backgrounds and foregrounds, updating style setters (such as setting FontWeight and adjusting VerticalContentAlignment), and modifying the ControlTemplate for ToolTip.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
Fluent.Light.xaml | Updated ToolTip resource keys and adjusted DefaultToolTipStyle setters for improved layout and visual consistency. |
Fluent.HC.xaml | Applied similar resource renaming and style modifications to the high-contrast theme. |
Fluent.Dark.xaml | Revised ToolTip styling including resource key updates and alignment modifications. |
ToolTip.xaml | Aligned ToolTip style setters with the new resource naming conventions. |
Light.xaml | Updated resource definitions for ToolTip backgrounds and foregrounds in the light theme. |
HC.xaml | Revised ToolTip resource definitions for the high-contrast theme. |
Dark.xaml | Updated ToolTip resource definitions for the dark theme. |
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10863 +/- ##
===================================================
- Coverage 13.52048% 13.41971% -0.10077%
===================================================
Files 3319 3319
Lines 664895 664895
Branches 74675 74675
===================================================
- Hits 89897 89227 -670
- Misses 572455 573123 +668
- Partials 2543 2545 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Resources/Theme/Dark.xaml
Show resolved
Hide resolved
5224da3
to
e9de8d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approving changes.
Fixes #9672
Description
Fixes issues in ToolTip style : including resource naming, some values and layout
Customer Impact
Correct style for ToolTip
Regression
N/A
Testing
Local
Risk
Minimal.
\
Microsoft Reviewers: Open in CodeFlow