Set UI scale

This commit is contained in:
Matt Parker
2025-11-18 02:11:04 +10:00
parent ac29c29f0b
commit a9adcb8d8a
5 changed files with 39 additions and 12 deletions

View File

@@ -27,6 +27,7 @@ public partial class IdeWindow : Control
SharpIdeMsbuildLocator.Register();
GodotOtelExtensions.AddServiceDefaults();
Singletons.AppState = AppStateLoader.LoadAppStateFromConfigFile();
GetTree().GetRoot().ContentScaleFactor = Singletons.AppState.IdeSettings.UiScale;
//GetWindow().SetMinSize(new Vector2I(1152, 648));
Callable.From(() => PickSolution(true)).CallDeferred();
}