Add SchemaVersion to reset themes to default on change

- Extract embedded ThemeSet type to new file
- Eliminate redundant SerializedTheme type
- Issue MatterHackers/MCCentral#4353
Toggle buttons missing dots
This commit is contained in:
John Lewin 2018-10-23 12:37:50 -07:00
parent 2ee7848093
commit e2c5ae4bfd
8 changed files with 93 additions and 65 deletions

View file

@ -95,8 +95,6 @@ namespace MatterHackers.MatterControl.ConfigurationPage
colorSelector.RebuildColorButtons();
this.CreateThemeModeButtons();
this.PreviewTheme(_themeProvider.DefaultColor);
}
}
private void CreateThemeModeButtons()
@ -138,7 +136,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
}
else
{
themeset = provider.GetTheme(themeName, provider.DefaultColor);
themeset = provider.GetTheme(themeName);
}
previewContainer.AddChild(new ThemePreviewButton(themeset, this)