Skip to content
Browse files
#2753 fix tab strip color
#2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color
  • Loading branch information
abhibeckert committed Aug 4, 2017
2 parents 1cbc8f7 + 765c895 commit b9200621f0cef09a09deae6c237622c3fc009018
Showing 1 changed file with 5 additions and 1 deletion.
@@ -473,7 +473,11 @@ - (void)drawBackgroundInRect:(NSRect)rect

// Fill in background of tab bar
[[NSColor colorWithCalibratedWhite:backgroundCalibratedWhite alpha:1.0f] set];
if (tabBar.cells.count != 1) { // multiple tabs - fill with background color
[[NSColor colorWithCalibratedWhite:backgroundCalibratedWhite alpha:1.0f] set];
} else { // When there's only one tab, the tabs are probably hidden, so use the selected cell's highlight colour as our background colour
[[self fillColorForCell:selectedCell] set];
NSRectFill(NSMakeRect(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height));

// Draw horizontal line across the top edge

0 comments on commit b920062

Please sign in to comment.