Link Search Menu Expand Document

image Color Tab

/Buttons Zero State/ColorTab.cs

All credits to pyrevit

Color the tab based on Project and view type

image

Only 4 view types are colored:

if (tab.ToolTip.ToString().Contains("Plan:"))
    tab.Background = planBrush;
else if (tab.ToolTip.ToString().Contains("Section:"))
    tab.Background = sectBrush;
else if (tab.ToolTip.ToString().Contains("3D View:"))
    tab.Background = threeDBrush;
else if (tab.ToolTip.ToString().Contains("Sheet:"))
    tab.Background = sheetBrush;