diff --git a/Source/Editor/GUI/Docking/DockHintWindow.cs b/Source/Editor/GUI/Docking/DockHintWindow.cs index 2b0902cf9..103a04c38 100644 --- a/Source/Editor/GUI/Docking/DockHintWindow.cs +++ b/Source/Editor/GUI/Docking/DockHintWindow.cs @@ -446,7 +446,8 @@ namespace FlaxEditor.GUI.Docking Window = Platform.CreateWindow(ref settings); Window.Opacity = 0.6f; - Window.GUI.BackgroundColor = Style.Current.DragWindow; + Window.GUI.BackgroundColor = Style.Current.Selection; + Window.GUI.AddChild(); } else { @@ -457,6 +458,20 @@ namespace FlaxEditor.GUI.Docking InitHitProxy(); } + private sealed class DragVisuals : Control + { + public DragVisuals() + { + AnchorPreset = AnchorPresets.StretchAll; + Offsets = Margin.Zero; + } + + public override void Draw() + { + Render2D.DrawRectangle(new Rectangle(Float2.Zero, Size), Style.Current.SelectionBorder); + } + } + private static void CreateProxy(ref Window win, string name) { if (win != null) @@ -479,7 +494,8 @@ namespace FlaxEditor.GUI.Docking win = Platform.CreateWindow(ref settings); win.Opacity = 0.6f; - win.GUI.BackgroundColor = Style.Current.DragWindow; + win.GUI.BackgroundColor = Style.Current.Selection; + win.GUI.AddChild(); } ///