File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 22using Microsoft . Extensions . Hosting ;
33using SharpIDE . Application . Features . Build ;
44using SharpIDE . Godot . Features . IdeSettings ;
5+ using SharpIDE . Godot . Features . Settings ;
56using SharpIDE . Godot . Features . SlnPicker ;
67using Environment = System . Environment ;
78
@@ -32,6 +33,7 @@ public override void _Ready()
3233 GodotOtelExtensions . AddServiceDefaults ( ) ;
3334 Singletons . AppState = AppStateLoader . LoadAppStateFromConfigFile ( ) ;
3435 GetTree ( ) . GetRoot ( ) . ContentScaleFactor = Singletons . AppState . IdeSettings . UiScale ;
36+ SetIdeThemeFromAppState ( ) ;
3537 //GetWindow().SetMinSize(new Vector2I(1152, 648));
3638 Callable . From ( ( ) => PickSolution ( true ) ) . CallDeferred ( ) ;
3739 }
@@ -56,6 +58,12 @@ private void SetMaxFpsForMonitor()
5658 GD . Print ( $ "Detected display refresh rate: { refreshRate } Hz, setting max FPS to { refreshRateBelowCapRoundedDownToInt } Hz") ;
5759 Engine . MaxFps = refreshRateBelowCapRoundedDownToInt ;
5860 }
61+
62+ private void SetIdeThemeFromAppState ( )
63+ {
64+ var theme = Singletons . AppState . IdeSettings . Theme ;
65+ this . SetIdeTheme ( theme ) ;
66+ }
5967
6068 public void PickSolution ( bool fullscreen = false )
6169 {
You can’t perform that action at this time.
0 commit comments