Permalink
Browse files

#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
1 parent ebf7d8b commit 765c8956a13d45c7ab70105f39ccdbfa94e7b9c8
Showing with 5 additions and 1 deletion.
  1. +5 −1 Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
@@ -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 765c895

Please sign in to comment.