Made display mode driven by theme setting.
This commit is contained in:
parent
bda5ac173e
commit
a4ef3f729c
4 changed files with 34 additions and 3 deletions
|
|
@ -186,7 +186,14 @@ namespace MatterHackers.MatterControl
|
|||
if (globalInstance == null)
|
||||
{
|
||||
globalInstance = new ApplicationController();
|
||||
globalInstance.MainView = new ResponsiveApplicationView();
|
||||
if (ActiveTheme.Instance.DisplayMode == ActiveTheme.ApplicationDisplayType.Touchscreen)
|
||||
{
|
||||
globalInstance.MainView = new CompactApplicationView();
|
||||
}
|
||||
else
|
||||
{
|
||||
globalInstance.MainView = new ResponsiveApplicationView();
|
||||
}
|
||||
}
|
||||
return globalInstance;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue