dotnet / dotnet/winforms

[Dark Mode] Different Icon Display for Expanding Nodes with Child Items in TreeView

Open
#11,932 1 comment 0 reactions 0 assignees View on GitHub
area-DarkMode help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### .NET version

9.0.0-rc.1.24414.1 + build private dll 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

The icon for expanding nodes with child items in TreeView appears differently in Dark Mode compared to Classic. Please confirm if this is the expected behavior. Below are the results in Classic and Dark Mode

**Classic**
![Screenshot 2024-08-20 055045](https://github.com/user-attachments/assets/f8fc6fbd-5bdd-4fc0-85dc-49006728be56)

**Dark Mode**
![Screenshot 2024-08-20 054838](https://github.com/user-attachments/assets/f309bf0f-ee08-40c3-be56-893cac3499cd)

### Steps to reproduce

1. Create a WinForms .NET Core application with TreeView control.
2. Populate the TreeView with a parent node that contains several child nodes.
3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file.
4. Run the application.
5. Observe the expand icon

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.