-
Notifications
You must be signed in to change notification settings - Fork 998
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
Address non dark-mode coloring of listitem and treenode controls while in edit mode #12674
base: main
Are you sure you want to change the base?
Address non dark-mode coloring of listitem and treenode controls while in edit mode #12674
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12674 +/- ##
===================================================
- Coverage 76.18717% 76.17915% -0.00802%
===================================================
Files 3193 3193
Lines 640306 640334 +28
Branches 47237 47239 +2
===================================================
- Hits 487831 487801 -30
- Misses 148942 149001 +59
+ Partials 3533 3532 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
Hi there. I'm not sure what to do with the codecov report. For perspective, I have been a developer for 20 odd years, but haven't done changes through github for MS before. Cheers. |
@dotnet-policy-service agree |
This is my first PR for MS. I didn't really understand what was happening with the accessibility testing software. |
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.
Hey @pcblues,
2 general issues I have on first sight with this PR:
-
We are using DLL imports from CSWin32. Take a look at other samples how to utilize those and adapt the approach accordingly.
-
We need to make sure we're not clashing with this approach when the users themselves are using owner drawing.
The latter issue is actually one where I would need to think about a bit more, if owner drawing is the way to go. Have you tested this with different HighDPI-Modes and other Font(s/ sizes) than the default font? Does that still work? Could you also try it in PMV2 with different Resolutions on the monitors? Thanks!
Fixes #12042 - TreeNode and ListItem not displaying in dark mode during editing, even though application is set to be in dark mode.
Proposed changes
If the application is in dark mode, capture the parent's windows message to identify the start of editing, and change the colour of the brush to match the parent's window color.
Customer Impact
Correction of incorrect color selection.
Regression?
Risk
I tried to limit the impact of the change to only occurring when the application is in dark mode. I'm not sure of the impact, if any, on custom ListView subitems, or custom-drawn TreeNodes.
Screenshots
Before
After
Test methodology
I used the test application provided to highlight the bug in the ticket to test the new behaviour.
Accessibility testing
Test environment(s)
Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow