From 5d2fe5908b2b573acb8b76a964f855d380dadb7e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 25 Feb 2021 14:45:58 +0100 Subject: [PATCH] Add editor window outline color to match the status bar color --- Source/Editor/Modules/UIModule.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index 8f8648c88..c64ceaa11 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -316,8 +316,7 @@ namespace FlaxEditor.Modules if (win.IsMaximized) return; - var style = Style.Current; - var color = style.BackgroundSelected; + var color = Editor.Instance.UI.StatusBar.StatusColor; var rect = new Rectangle(0.5f, 0.5f, Parent.Width - 1.0f, Parent.Height - 1.0f - StatusBar.DefaultHeight); Render2D.DrawLine(rect.UpperLeft, rect.UpperRight, color); Render2D.DrawLine(rect.UpperLeft, rect.BottomLeft, color);