aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2017-08-04 16:49:55 +1000
committerGitHub <noreply@github.com>2017-08-04 16:49:55 +1000
commitb9200621f0cef09a09deae6c237622c3fc009018 (patch)
tree21497ebcef2444af576d728e3ab23dc32c5607ce
parent1cbc8f7ca081a6538a2df484d89723cf441acb3c (diff)
parent765c8956a13d45c7ab70105f39ccdbfa94e7b9c8 (diff)
downloadsequelpro-b9200621f0cef09a09deae6c237622c3fc009018.tar.gz
sequelpro-b9200621f0cef09a09deae6c237622c3fc009018.tar.bz2
sequelpro-b9200621f0cef09a09deae6c237622c3fc009018.zip
#2753 fix tab strip color
#2753 fix bug with active tab favourite strip drawing in grey instead of the selected tab color
-rw-r--r--Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m6
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