Improve PropertyGrid dark theme colors

This commit is contained in:
Jaex 2019-06-23 16:03:25 +03:00
parent cc6c87835a
commit ae969a9cb3

View file

@ -95,6 +95,13 @@ private static void ApplyThemeToControl(Control control)
sc.Panel1.BackColor = BackgroundColor;
sc.Panel2.BackColor = BackgroundColor;
goto default;
case PropertyGrid pg:
pg.CategoryForeColor = TextColor;
pg.CategorySplitterColor = BorderColor;
pg.LineColor = BorderColor;
pg.SelectedItemWithFocusForeColor = BorderColor;
pg.SelectedItemWithFocusBackColor = TextColor;
goto default;
default:
control.ForeColor = TextColor;
control.BackColor = BackgroundColor;