diff options
author | Max <post@wickenrode.com> | 2014-11-30 00:49:44 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-11-30 00:49:44 +0100 |
commit | 1af7e143385e716b5b0154854dda22a9c270ccad (patch) | |
tree | 4771fd475598556caa7c4467e7644f9194480b32 /Frameworks/PSMTabBar/Styles | |
parent | bdcda6621f31db4e2c03387a881b91b1834f964f (diff) | |
download | sequelpro-1af7e143385e716b5b0154854dda22a9c270ccad.tar.gz sequelpro-1af7e143385e716b5b0154854dda22a9c270ccad.tar.bz2 sequelpro-1af7e143385e716b5b0154854dda22a9c270ccad.zip |
Fix a drawing issue with the tab bar (HiDPI only)
Diffstat (limited to 'Frameworks/PSMTabBar/Styles')
-rw-r--r-- | Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m index 5024818b..341b7b7b 100644 --- a/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m +++ b/Frameworks/PSMTabBar/Styles/PSMSequelProTabStyle.m @@ -484,7 +484,7 @@ typedef struct { NSRect frame = [aCell frame]; //the leftmost cell has no left border when inactive so we need to expand it's area to the left window edge if(currentIndex == 0 && [aCell state] == NSOffState) { - frame = NSMakeRect(frame.origin.x - kPSMSequelProTabCornerRadius, frame.origin.y, frame.size.width + kPSMSequelProTabCornerRadius + 0.5f, frame.size.height); + frame = NSMakeRect(0.0, frame.origin.y, frame.size.width + kPSMSequelProTabCornerRadius + 0.5f, frame.size.height); } NSRectFillUsingOperation(frame, NSCompositeSourceAtop); } @@ -629,8 +629,8 @@ typedef struct { // Set up the corner bezier paths arc centers topLeftArcCenter = NSMakePoint(aRect.origin.x - kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + kPSMSequelProTabCornerRadius); topRightArcCenter = NSMakePoint(aRect.origin.x + aRect.size.width + kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + kPSMSequelProTabCornerRadius); - bottomLeftArcCenter = NSMakePoint(aRect.origin.x + kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + aRect.size.height - kPSMSequelProTabCornerRadius); - bottomRightArcCenter = NSMakePoint(aRect.origin.x + aRect.size.width - kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + aRect.size.height - kPSMSequelProTabCornerRadius); + bottomLeftArcCenter = NSMakePoint(aRect.origin.x + kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + aRect.size.height - kPSMSequelProTabCornerRadius -0.5f); + bottomRightArcCenter = NSMakePoint(aRect.origin.x + aRect.size.width - kPSMSequelProTabCornerRadius + 0.5f, aRect.origin.y + aRect.size.height - kPSMSequelProTabCornerRadius -0.5f); // Construct the outline path if (drawLeftEdge) { @@ -674,8 +674,8 @@ typedef struct { [highlightColor set]; NSBezierPath *highlightBezier = [NSBezierPath bezierPath]; - [highlightBezier moveToPoint:NSMakePoint(aRect.origin.x, aRect.origin.y)]; - [highlightBezier lineToPoint:NSMakePoint(aRect.origin.x+aRect.size.width, aRect.origin.y)]; + [highlightBezier moveToPoint:NSMakePoint(aRect.origin.x - kPSMSequelProTabCornerRadius+2.5f, aRect.origin.y+0.5f)]; + [highlightBezier lineToPoint:NSMakePoint(aRect.origin.x+aRect.size.width+kPSMSequelProTabCornerRadius-1.0f, aRect.origin.y+0.5f)]; [highlightBezier setLineWidth:1.0f]; [highlightBezier stroke]; } |