diff --git a/MaterialSkinExample/MainForm.cs b/MaterialSkinExample/MainForm.cs index b8543627..1dcbcdfb 100644 --- a/MaterialSkinExample/MainForm.cs +++ b/MaterialSkinExample/MainForm.cs @@ -14,12 +14,14 @@ public MainForm() InitializeComponent(); + // Initialize MaterialSkinManager + materialSkinManager = MaterialSkinManager.Instance; + // Set this to false to disable backcolor enforcing on non-materialSkin components // This HAS to be set before the AddFormToManage() materialSkinManager.EnforceBackcolorOnAllComponents = true; - // Initialize MaterialSkinManager - materialSkinManager = MaterialSkinManager.Instance; + // MaterialSkinManager properties materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; materialSkinManager.ColorScheme = new ColorScheme(Primary.Indigo500, Primary.Indigo700, Primary.Indigo100, Accent.Pink200, TextShade.WHITE);