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