We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fc5313 commit 0e41dd0Copy full SHA for 0e41dd0
src/System.Windows.Forms/src/System/Windows/Forms/Application.cs
@@ -386,7 +386,8 @@ private static int GetSystemColorModeInternal()
386
[Experimental(DiagnosticIDs.ExperimentalDarkMode, UrlFormat = DiagnosticIDs.UrlFormat)]
387
public static bool IsDarkModeEnabled =>
388
!SystemInformation.HighContrast
389
- && (SystemColorMode == SystemColorMode.Dark);
+ && (ColorMode == SystemColorMode.Dark
390
+ || (ColorMode == SystemColorMode.System && SystemColorMode == SystemColorMode.Dark));
391
392
/// <summary>
393
/// Gets the path for the executable file that started the application.
0 commit comments