23 references to IsDarkModeEnabled
System.Windows.Forms (20)
System\Windows\Forms\Application.cs (1)
310
bool darkModeEnabled =
IsDarkModeEnabled
;
System\Windows\Forms\Control.cs (2)
7265
if (Application.
IsDarkModeEnabled
&& GetStyle(ControlStyles.ApplyThemingImplicitly))
10289
PrepareDarkMode(HWND, Application.
IsDarkModeEnabled
);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2337
if (Application.
IsDarkModeEnabled
)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
493
|| Application.
IsDarkModeEnabled
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
428
if (ShouldSerializeForeColor() || Application.
IsDarkModeEnabled
|| !Enabled)
System\Windows\Forms\Controls\ListView\ListView.cs (4)
4529
if (Application.
IsDarkModeEnabled
)
4935
if (c != SystemColors.Window || Application.
IsDarkModeEnabled
)
4942
if (c != SystemColors.WindowText || Application.
IsDarkModeEnabled
)
5939
if (Application.
IsDarkModeEnabled
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
200
if (ShouldSerializeBackColor() || Application.
IsDarkModeEnabled
)
416
if (ShouldSerializeForeColor() || Application.
IsDarkModeEnabled
)
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
84
if (Application.
IsDarkModeEnabled
)
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
108
else if (!Application.
IsDarkModeEnabled
606
Color bkColor = (UseVisualStyleBackColor && !Application.
IsDarkModeEnabled
)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
559
if (Application.
IsDarkModeEnabled
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
301
using var brush = Application.
IsDarkModeEnabled
?
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1885
if (c != SystemColors.Window || Application.
IsDarkModeEnabled
)
1892
if (c != SystemColors.WindowText || Application.
IsDarkModeEnabled
)
System\Windows\Forms\Form.cs (1)
4278
if (Application.
IsDarkModeEnabled
)
System.Windows.Forms.Tests (3)
System\Windows\Forms\ApplicationTests.cs (3)
164
Assert.False(Application.
IsDarkModeEnabled
);
169
Assert.True(Application.
IsDarkModeEnabled
);
174
Assert.False(Application.
IsDarkModeEnabled
^ systemColorMode == SystemColorMode.Dark);