Skip to content

Commit 765c895

Browse files
committed
#2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color
1 parent ebf7d8b commit 765c895

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,11 @@ - (void)drawBackgroundInRect:(NSRect)rect
473473
}
474474

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

479483
// Draw horizontal line across the top edge

0 commit comments

Comments
 (0)