Skip to content

Commit

Permalink
Merge pull request #35 from leocb/fix-enforce-example-call-order
Browse files Browse the repository at this point in the history
fix enforceBackcolor logic order
  • Loading branch information
leocb authored Dec 23, 2019
2 parents bfe3aeb + 813a1dd commit 17070d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MaterialSkinExample/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ public partial class MainForm : MaterialForm
private readonly MaterialSkinManager materialSkinManager;
public MainForm()
{

InitializeComponent();

// 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.AddFormToManage(this);
materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
materialSkinManager.ColorScheme = new ColorScheme(Primary.Indigo500, Primary.Indigo700, Primary.Indigo100, Accent.Pink200, TextShade.WHITE);

// Set this to false to disable backcolor enforcing on non-materialSkin components
materialSkinManager.EnforceBackcolorOnAllComponents = true;

// Add dummy data to the listview
seedListView();
Expand Down

0 comments on commit 17070d5

Please sign in to comment.