Skip to content

Commit

Permalink
Merge pull request #36 from leocb/fix-manager-init
Browse files Browse the repository at this point in the history
Fix manager instance creation before setting properties
  • Loading branch information
leocb committed Dec 23, 2019
2 parents 17070d5 + 06a7811 commit 386a5ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MaterialSkinExample/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 386a5ea

Please sign in to comment.