aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-01-05 21:59:32 +0000
committerrowanbeentje <rowan@beent.je>2013-01-05 21:59:32 +0000
commita3a738ea230ead792aa747e4a66ced6e8bea8562 (patch)
tree3fb47c41a7594fac74ff6e1c77158df4f334ab4f /Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
parent8d397ab95afd68d5f9d7ecf5267c9a11a72d04c6 (diff)
downloadsequelpro-a3a738ea230ead792aa747e4a66ced6e8bea8562.tar.gz
sequelpro-a3a738ea230ead792aa747e4a66ced6e8bea8562.tar.bz2
sequelpro-a3a738ea230ead792aa747e4a66ced6e8bea8562.zip
- Call the NSWindow super implementation of validateMenuItem: in SPWindow, fixing Show Toolbar/Hide Toolbar menu item title not being updated correctly - addresses Issue #1521
- When the toolbar is hidden, draw a line in the window to cover up the bottom border of the window's title bar, improving appearance - Improve tab appearance when toolbar is hidden
Diffstat (limited to 'Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m')
-rw-r--r--Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
index 6feb49a4..94b49254 100644
--- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
+++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m
@@ -508,7 +508,10 @@
if (([[tabBar window] isMainWindow] || [[[tabBar window] attachedSheet] isMainWindow]) && [NSApp isActive]) {
lineColor = [NSColor darkGrayColor];
if ([cell state] == NSOnState) {
- fillColor = [NSColor colorWithCalibratedWhite:(systemVersion >= 0x1070)?0.63f:0.59f alpha:1.0f];
+ float tabWhiteComponent = (systemVersion >= 0x1070)?0.63f:0.59f;
+ if (![[[tabBar window] toolbar] isVisible]) tabWhiteComponent += 0.02f;
+
+ fillColor = [NSColor colorWithCalibratedWhite:tabWhiteComponent alpha:1.0f];
shadowColor = [NSColor colorWithCalibratedWhite:0.0f alpha:0.7f];
} else {
fillColor = [NSColor colorWithCalibratedWhite:(systemVersion >= 0x1070)?0.55f:0.495f alpha:1.0f];
@@ -517,7 +520,10 @@
} else {
lineColor = [NSColor colorWithCalibratedWhite:0.49f alpha:1.0f];
if ([cell state] == NSOnState) {
- fillColor = [NSColor colorWithCalibratedWhite:(systemVersion >= 0x1070)?0.85f:0.81f alpha:1.0f];
+ float tabWhiteComponent = (systemVersion >= 0x1070)?0.85f:0.81f;
+ if (![[[tabBar window] toolbar] isVisible]) tabWhiteComponent += 0.01f;
+
+ fillColor = [NSColor colorWithCalibratedWhite:tabWhiteComponent alpha:1.0f];
shadowColor = [NSColor colorWithCalibratedWhite:0.0f alpha:0.4f];
} else {
fillColor = [NSColor colorWithCalibratedWhite:(systemVersion >= 0x1070)?0.79f:0.73f alpha:1.0f];