Skip to content
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

[Dark Mode] Control pops up dialogs and MessageBox window are not in Dark mode when DarkMode enabled #11896

Open
Philip-Wang01 opened this issue Aug 16, 2024 · 3 comments
Labels
area-DarkMode Issues relating to Dark Mode feature help wanted Good issue for external contributors
Milestone

Comments

@Philip-Wang01
Copy link
Contributor

.NET version

.NET SDK 9.0.100-rc.1.24415.1 + build private dll form winforms repo release/9.0 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: #11857

Issue description

Control pops up dialogs and MessageBox window are not in Dark mode when DarkMode enabled

ColorDialog:
image

FontDialog:
image

MessageBox:
image

Steps to reproduce

  1. Create a WinForms .NET Core application.
  2. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in program.cs file.
  3. Add three button controls to the form designer.
  4. Add click events to open FontDialog, ColorDialog and MessageBox for each of the three buttons.
  5. Run the application.
  6. Click each of the three buttons and observe the color of the new dialog.
@Philip-Wang01 Philip-Wang01 added the untriaged The team needs to look at this issue in the next triage label Aug 16, 2024
@KlausLoeffelmann
Copy link
Member

This is currently by design. This is nothing, that we would address right now, even if we could potentially change that.
For type editors, we need to address them over time anyway to make dark mode work for VS.
My suggestion is that we would port those then back to the runtime and make them dark mode aware.
But this has nothing to do with the dark mode not working in this case, this is more that we would need to introduce dark mode ability in our own infra over time. So, those are not bugs but actually to do issues.

When dialogs are triggered directly by the system, however, that it's not in our hands. Windows does the same, like this dialog in the File Explorer. Thay are migrating to dark mode or a new UI approach over time:

Image

So:
Color Dialog and Font Dialog, we could potentially address.
The MessageBox is what it is. We could think about a way of styling the TaskDialog - I haven't looked into that, yet.

@lonitra lonitra added the area-DarkMode Issues relating to Dark Mode feature label Aug 20, 2024
@memoarfaa
Copy link

@KlausLoeffelmann

So: Color Dialog and Font Dialog, we could potentially address. The MessageBox is what it is. We could think about a way of styling the TaskDialog - I haven't looked into that, yet.

Are you Sure that The MessageBox is what it is and we cannot apply dark mode to it ?

2024-08-22_21-11-34.mp4

@merriemcgaw merriemcgaw added help wanted Good issue for external contributors and removed untriaged The team needs to look at this issue in the next triage labels Sep 4, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the Help wanted milestone Sep 4, 2024
Copy link
Contributor

This issue is now marked as "help wanted", and we’re looking for a community volunteer to work on this issue. If we receive no interest in 180 days, we will close the issue. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DarkMode Issues relating to Dark Mode feature help wanted Good issue for external contributors
Projects
None yet
Development

No branches or pull requests

5 participants