29 references to SystemColorMode
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\ApplicationServices\ApplyApplicationDefaultsEventArgs.vb (2)
22
colorMode As
SystemColorMode
)
33
Public Property ColorMode As
SystemColorMode
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (5)
70
Private _colorMode As
SystemColorMode
=
SystemColorMode
.Classic
191
''' The <see cref="
SystemColorMode
"/> that the application is running in.
194
Protected Property ColorMode As
SystemColorMode
198
Set(value As
SystemColorMode
)
System.Windows.Forms (22)
System\Windows\Forms\Application.cs (22)
46
private static
SystemColorMode
? s_colorMode;
244
/// This is the <see cref="SystemColorMode"/> which either has been set by <see cref="SetColorMode(
SystemColorMode
)"/>
245
/// or its default value <see cref="
SystemColorMode
.Classic"/>. If it has been set to <see cref="
SystemColorMode
.System"/>,
250
public static
SystemColorMode
ColorMode => s_colorMode ??
SystemColorMode
.Classic;
265
/// (<see cref="
SystemColorMode
.Dark"/>), Classic (light) Mode (<see cref="
SystemColorMode
.Classic"/>),
266
/// or the system-defined mode (<see cref="
SystemColorMode
.System"/>).
269
/// If you set <see cref="
SystemColorMode
.System"/>, the actual color mode is determined by the Windows system settings.
320
public static void SetColorMode(
SystemColorMode
systemColorMode)
327
SystemColorMode
.Classic => systemColorMode,
328
SystemColorMode
.System => systemColorMode,
329
SystemColorMode
.Dark => systemColorMode,
392
/// It returns <see cref="
SystemColorMode
.Dark"/> if dark mode is enabled in the system settings,
393
/// or <see cref="
SystemColorMode
.Classic"/> if the color mode is set to the light, standard color setting.
403
public static
SystemColorMode
SystemColorMode =>
405
?
SystemColorMode
.Dark
406
:
SystemColorMode
.Classic;
442
&& (ColorMode ==
SystemColorMode
.Dark
443
|| (ColorMode ==
SystemColorMode
.System && SystemColorMode ==
SystemColorMode
.Dark));