Remove Colors from ThemeProvider
This commit is contained in:
parent
22041cfc16
commit
286c7d8291
3 changed files with 5 additions and 15 deletions
|
|
@ -92,13 +92,11 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
{
|
||||
_themeProvider = value;
|
||||
|
||||
var previewColor = _themeProvider.Colors.First();
|
||||
|
||||
colorSelector.RebuildColorButtons();
|
||||
|
||||
this.CreateThemeModeButtons();
|
||||
|
||||
this.PreviewTheme(previewColor);
|
||||
this.PreviewTheme(_themeProvider.DefaultColor);
|
||||
}
|
||||
}
|
||||
private void CreateThemeModeButtons()
|
||||
|
|
@ -109,11 +107,6 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
|
||||
var accentColor = theme.PrimaryAccentColor;
|
||||
|
||||
if (!_themeProvider.Colors.Contains(accentColor))
|
||||
{
|
||||
accentColor = _themeProvider.DefaultColor;
|
||||
}
|
||||
|
||||
int providerIndex = 0;
|
||||
|
||||
foreach (var provider in AppContext.ThemeProviders.Values)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue