Skip to content

Commit

Permalink
Merge pull request #45 from lzcapp/main
Browse files Browse the repository at this point in the history
Add dark theme for RichTextBox and FlowLayoutPanel
  • Loading branch information
BlueMystical authored Sep 9, 2024
2 parents 40fa312 + 5d841f3 commit 2451e7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SourceFiles/DarkModeCS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,16 @@ public void ThemeControl(Control control)
grid.RowHeadersDefaultCellStyle.SelectionBackColor = OScolors.Surface;
grid.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
}
if (control is RichTextBox richText)
{
richText.BackColor = richText.Parent.BackColor;
richText.BorderStyle = BorderStyle.None;
}
if (control is FlowLayoutPanel flowLayout)
{
flowLayout.BackColor = flowLayout.Parent.BackColor;
flowLayout.BorderStyle = BorderStyle.None;
}


Debug.Print(string.Format("{0}: {1}", control.Name, control.GetType().Name));
Expand Down

0 comments on commit 2451e7c

Please sign in to comment.