/// <summary> /// Gets the image to use for the right side of the tab. For Chrome, we pick a specific image for inactive tabs that aren't at /// the end of the list to allow for the separation between inactive tabs to be more clearly defined. /// </summary> /// <param name="tab">Tab that we are retrieving the image for.</param> /// <returns>Right-side image for <paramref name="tab"/>.</returns> protected override Image GetTabRightImage(TitleBarTab tab) { ListWithEvents <TitleBarTab> allTabs = tab.Parent.Tabs; if (tab.Active || allTabs.IndexOf(tab) == allTabs.Count - 1) { return(base.GetTabRightImage(tab)); } return(_inactiveRightSideShadowImage); }