Migrate Theme support to Agg.UI
This commit is contained in:
parent
77d3df1d01
commit
e5a63b052e
41 changed files with 155 additions and 473 deletions
|
|
@ -55,7 +55,7 @@ namespace MatterHackers.MatterControl
|
|||
this.BackgroundColor = ActiveTheme.Instance.PrimaryAccentColor;
|
||||
|
||||
// Add Child Elements
|
||||
if (ActiveTheme.Instance.DisplayMode == ActiveTheme.ApplicationDisplayType.Responsive)
|
||||
if (UserSettings.Instance.DisplayMode == ApplicationDisplayType.Responsive)
|
||||
{
|
||||
this.AddChild(new ActionBar.PrinterActionRow());
|
||||
}
|
||||
|
|
@ -63,7 +63,7 @@ namespace MatterHackers.MatterControl
|
|||
this.Padding = new BorderDouble(bottom: 6);
|
||||
|
||||
// Add Handlers
|
||||
ActiveTheme.Instance.ThemeChanged.RegisterEvent(ThemeChanged, ref unregisterEvents);
|
||||
ActiveTheme.ThemeChanged.RegisterEvent(ThemeChanged, ref unregisterEvents);
|
||||
}
|
||||
|
||||
public void ThemeChanged(object sender, EventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue