Lots of theme and UI related updates.
This commit is contained in:
parent
caa660fc22
commit
738b2d5a57
15 changed files with 275 additions and 151 deletions
|
|
@ -56,6 +56,7 @@ namespace MatterHackers.MatterControl
|
|||
public RootedObjectEventHandler ReloadPanelTrigger = new RootedObjectEventHandler();
|
||||
public RootedObjectEventHandler SetUpdateNotificationTrigger = new RootedObjectEventHandler();
|
||||
bool widescreenMode;
|
||||
event EventHandler unregisterEvents;
|
||||
|
||||
public bool WidescreenMode
|
||||
{
|
||||
|
|
@ -73,9 +74,11 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public ApplicationWidget()
|
||||
{
|
||||
Name = "MainSlidePanel";
|
||||
ActiveTheme.Instance.ThemeChanged.RegisterEvent(ReloadAll, ref unregisterEvents);
|
||||
}
|
||||
|
||||
public void AddElements()
|
||||
|
|
@ -86,6 +89,15 @@ namespace MatterHackers.MatterControl
|
|||
SetUpdateNotification(this, null);
|
||||
}
|
||||
|
||||
public void ReloadAll(object sender, EventArgs e)
|
||||
{
|
||||
UiThread.RunOnIdle((state) =>
|
||||
{
|
||||
this.RemoveAllChildren();
|
||||
this.AddChild(new WidescreenPanel());
|
||||
});
|
||||
}
|
||||
|
||||
public static ApplicationWidget Instance
|
||||
{
|
||||
get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue