Skip to content

Commit 2217665

Browse files
author
Simon Zhao (BEYONDSOFT CONSULTING INC)
committed
Fix issue 11938
1 parent effcb7e commit 2217665

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/System.Windows.Forms/System/Windows/Forms/Controls/ProgressBar

src/System.Windows.Forms/System/Windows/Forms/Controls/ProgressBar/ProgressBar.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ protected override void OnCreateControl()
8181

8282
if (Application.IsDarkModeEnabled)
8383
{
84+
BackColor = SystemColors.ControlDarkDark;
85+
ForeColor = SystemColors.Highlight;
8486
// Disables Visual Styles for the ProgressBar.
8587
PInvoke.SetWindowTheme(HWND, " ", " ");
8688
}

0 commit comments

Comments
 (0)