diff --git a/src/SharpIDE.Godot/Features/Settings/SettingsWindow.cs b/src/SharpIDE.Godot/Features/Settings/SettingsWindow.cs index 19524f4..5680014 100644 --- a/src/SharpIDE.Godot/Features/Settings/SettingsWindow.cs +++ b/src/SharpIDE.Godot/Features/Settings/SettingsWindow.cs @@ -10,7 +10,9 @@ public partial class SettingsWindow : Window private OptionButton _themeOptionButton = null!; private Theme _lightTheme = ResourceLoader.Load("uid://epmt8kq6efrs"); + private Color _lightThemeClearColor = new Color("fdfdfd"); private Theme _darkTheme = ResourceLoader.Load("uid://dc7l6bjhn61i5"); + private Color _darkThemeClearColor = new Color("4d4d4d"); public override void _Ready() { @@ -58,10 +60,12 @@ public partial class SettingsWindow : Window var rootWindow = GetTree().GetRoot(); if (selectedTheme is "Light") { + RenderingServer.Singleton.SetDefaultClearColor(_lightThemeClearColor); rootWindow.Theme = _lightTheme; } else if (selectedTheme is "Dark") { + RenderingServer.Singleton.SetDefaultClearColor(_darkThemeClearColor); rootWindow.Theme = _darkTheme; } }