winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Mods for #12042

Open pcblues opened this issue 1 year ago • 1 comments

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?

  • Yes / No

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

364259285-197881bf-5284-493c-b665-ee5d47c9541c

After

image

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

pcblues avatar Dec 23 '24 07:12 pcblues