Skip to content

Commit

Permalink
#2753 fix tab strip color
Browse files Browse the repository at this point in the history
#2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color
  • Loading branch information
abhibeckert authored Aug 4, 2017
2 parents 1cbc8f7 + 765c895 commit b920062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b920062

Please sign in to comment.