12 references to Dark
Microsoft.VisualBasic.Forms.Tests (2)
System\Windows\Forms\WindowsFormsApplicationBaseTests.vb (2)
22
ColorMode = SystemColorMode.
Dark
23
ColorMode.Should.Be(SystemColorMode.
Dark
)
System.Windows.Forms (6)
System\Windows\Forms\Application.cs (6)
269
/// dark mode (<see cref="SystemColorMode.
Dark
"/>), light mode (<see cref="SystemColorMode.Classic"/>)
296
SystemColorMode.
Dark
=> systemColorMode,
355
/// It returns <see cref="SystemColorMode.
Dark
"/> if the dark mode is enabled in the system settings,
368
? SystemColorMode.
Dark
406
&& (ColorMode == SystemColorMode.
Dark
407
|| (ColorMode == SystemColorMode.System && SystemColorMode == SystemColorMode.
Dark
));
System.Windows.Forms.Tests (4)
System\Windows\Forms\ApplicationTests.cs (4)
168
Application.SetColorMode(SystemColorMode.
Dark
);
170
Assert.Equal(SystemColorMode.
Dark
, Application.ColorMode);
174
Assert.False(Application.IsDarkModeEnabled ^ systemColorMode == SystemColorMode.
Dark
);
176
Assert.False(SystemColors.UseAlternativeColorSet ^ systemColorMode == SystemColorMode.
Dark
);