diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2017-08-04 16:48:33 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2017-08-04 16:48:33 +1000 |
commit | 765c8956a13d45c7ab70105f39ccdbfa94e7b9c8 (patch) | |
tree | 21497ebcef2444af576d728e3ab23dc32c5607ce /Frameworks | |
parent | ebf7d8b7db4144d304bf2224db19d787d631eda0 (diff) | |
download | sequelpro-765c8956a13d45c7ab70105f39ccdbfa94e7b9c8.tar.gz sequelpro-765c8956a13d45c7ab70105f39ccdbfa94e7b9c8.tar.bz2 sequelpro-765c8956a13d45c7ab70105f39ccdbfa94e7b9c8.zip |
#2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color
Diffstat (limited to 'Frameworks')
-rw-r--r-- | Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 6 |
1 files changed, 5 insertions, 1 deletions
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 |