Change colors for tabs to be seen better.
This commit is contained in:
@@ -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 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)
|
if (_orientation == Orientation.Horizontal && TabsPanel.HScrollBar.Visible)
|
||||||
|
{
|
||||||
tabsSize.Y += TabsPanel.HScrollBar.Height;
|
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)
|
else if (_orientation == Orientation.Vertical && TabsPanel.VScrollBar.Visible)
|
||||||
|
{
|
||||||
tabsSize.X += TabsPanel.VScrollBar.Width;
|
tabsSize.X += TabsPanel.VScrollBar.Width;
|
||||||
|
var style = Style.Current;
|
||||||
|
TabsPanel.VScrollBar.TrackColor = style.Background;
|
||||||
|
TabsPanel.VScrollBar.ThumbColor = style.ForegroundGrey;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fit the tabs panel
|
// Fit the tabs panel
|
||||||
|
|||||||
Reference in New Issue
Block a user