From ee790ff3a971121082fec2107700c61a8a0ed3af Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 9 May 2024 21:53:22 -0500 Subject: [PATCH] Change colors for tabs to be seen better. --- Source/Editor/GUI/Tabs/Tabs.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Editor/GUI/Tabs/Tabs.cs b/Source/Editor/GUI/Tabs/Tabs.cs index 9a010f733..aefc25c90 100644 --- a/Source/Editor/GUI/Tabs/Tabs.cs +++ b/Source/Editor/GUI/Tabs/Tabs.cs @@ -418,9 +418,19 @@ namespace FlaxEditor.GUI.Tabs { // If scroll bar is visible it covers part of the tab header so include this in tab size to improve usability if (_orientation == Orientation.Horizontal && TabsPanel.HScrollBar.Visible) + { tabsSize.Y += TabsPanel.HScrollBar.Height; + var style = Style.Current; + TabsPanel.HScrollBar.TrackColor = style.Background; + TabsPanel.HScrollBar.ThumbColor = style.ForegroundGrey; + } else if (_orientation == Orientation.Vertical && TabsPanel.VScrollBar.Visible) + { tabsSize.X += TabsPanel.VScrollBar.Width; + var style = Style.Current; + TabsPanel.VScrollBar.TrackColor = style.Background; + TabsPanel.VScrollBar.ThumbColor = style.ForegroundGrey; + } } // Fit the tabs panel