29 references to SystemColorMode
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\ApplicationServices\ApplyApplicationDefaultsEventArgs.vb (2)
22
colorMode As
SystemColorMode
,
37
Public Property ColorMode As
SystemColorMode
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (5)
68
Private _colorMode As
SystemColorMode
=
SystemColorMode
.Classic
195
''' The <see cref="
SystemColorMode
"/> that the application is running in.
198
Protected Property ColorMode As
SystemColorMode
202
Set(value As
SystemColorMode
)
System.Windows.Forms (22)
System\Windows\Forms\Application.cs (22)
46
private static
SystemColorMode
? s_colorMode;
249
/// This is the <see cref="SystemColorMode"/> which either has been set by <see cref="SetColorMode(
SystemColorMode
)"/>
250
/// or its default value <see cref="
SystemColorMode
.Classic"/>. If it has been set to <see cref="
SystemColorMode
.System"/>,
255
public static
SystemColorMode
ColorMode => s_colorMode ??
SystemColorMode
.Classic;
309
/// (<see cref="
SystemColorMode
.Dark"/>), Classic (light) Mode (<see cref="
SystemColorMode
.Classic"/>),
310
/// or the system-defined mode (<see cref="
SystemColorMode
.System"/>).
313
/// If you set <see cref="
SystemColorMode
.System"/>, the actual color mode is determined by the Windows system settings.
364
public static void SetColorMode(
SystemColorMode
systemColorMode)
371
SystemColorMode
.Classic => systemColorMode,
372
SystemColorMode
.System => systemColorMode,
373
SystemColorMode
.Dark => systemColorMode,
466
/// It returns <see cref="
SystemColorMode
.Dark"/> if dark mode is enabled in the system settings,
467
/// or <see cref="
SystemColorMode
.Classic"/> if the color mode is set to the light, standard color setting.
477
public static
SystemColorMode
SystemColorMode =>
479
?
SystemColorMode
.Dark
480
:
SystemColorMode
.Classic;
516
&& (ColorMode ==
SystemColorMode
.Dark
517
|| (ColorMode ==
SystemColorMode
.System && SystemColorMode ==
SystemColorMode
.Dark));