Put in a first pass at a text size control.

This commit is contained in:
Lars Brubaker 2017-06-06 15:04:07 -07:00
parent 0c64f9ff30
commit 4b88969c4e
4 changed files with 85 additions and 0 deletions

View file

@ -274,6 +274,16 @@ namespace MatterHackers.MatterControl
GuiWidget.DeviceScale = 1.3;
SystemWindow.ShareSingleOsWindow = true;
}
string textSizeMode = UserSettings.Instance.get(UserSettingsKey.ApplicationTextSize);
if (!string.IsNullOrEmpty(textSizeMode))
{
double textSize = 1.0;
if(double.TryParse(textSizeMode, out textSize))
{
GuiWidget.DeviceScale = textSize;
}
}
//GuiWidget.DeviceScale = 2;
using (new PerformanceTimer("Startup", "MainView"))