winforms icon indicating copy to clipboard operation
winforms copied to clipboard

[Dark Mode] ListViewGroup/Subtitle/TaskLink is hard to visible in ListView after enabled SystemColorMode.Dark

Open Olina-Zhang opened this issue 1 year ago • 3 comments

.NET version

9.0.0-rc.1.24418.2 + private dlls built from winforms repo main branch

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

This is a new feature Dark Mode: https://github.com/dotnet/winforms/pull/11857

Issue description

ListViewGroup/Subtitle/TaskLink is hard to visible in ListView after enabled SystemColorMode.Dark

image

Steps to reproduce

  1. Create a WinForms .NET application with ListView control
  2. Add ListViewItem, ListViewColumn, ListViewGroup with setting Subtitle/TaskLink property
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
  4. Run the application to observe

Olina-Zhang avatar Aug 22 '24 09:08 Olina-Zhang

Hello, may I take this issue?

Gulin7 avatar Nov 25 '24 09:11 Gulin7

@Olina-Zhang @Gulin7 @merriemcgaw Do you see change title color of ListViewGroup is fine redraw the whole of ListViewGroup will tack some time.

https://github.com/user-attachments/assets/6f1fed3f-ff21-4e92-b198-41626267cf44

memoarfaa avatar May 31 '25 20:05 memoarfaa

@KlausLoeffelmann FYI.

Olina-Zhang avatar Jun 03 '25 02:06 Olina-Zhang

Ran into this too, right now the only solution I know is using NM_CUSTOMDRAW to handle drawing group headers manually, other than this the dark mode option is working well, would be great if a fix could be added.

Image

emoose avatar Aug 01 '25 20:08 emoose