From 765c8956a13d45c7ab70105f39ccdbfa94e7b9c8 Mon Sep 17 00:00:00 2001 From: Abhi Beckert Date: Fri, 4 Aug 2017 16:48:33 +1000 Subject: #2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color --- Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Frameworks') diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m index 30501bb8..9fcdd61d 100644 --- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m @@ -473,7 +473,11 @@ typedef struct { } // 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 -- cgit v1.2.3