diff --git a/AppKit/CPControl.j b/AppKit/CPControl.j index b4140e6e5..25cb70f99 100644 --- a/AppKit/CPControl.j +++ b/AppKit/CPControl.j @@ -112,7 +112,7 @@ var CPControlBlackColor = [CPColor blackColor]; CPTopVerticalTextAlignment, CPLineBreakByClipping, [CPColor blackColor], - [CPFont systemFontOfSize:12.0], + [CPFont systemFontOfSize:CPFontCurrentSystemSize], [CPNull null], _CGSizeMakeZero(), CPImageLeft, diff --git a/AppKit/Themes/BlendKit/BKThemeDescriptor.j b/AppKit/Themes/BlendKit/BKThemeDescriptor.j index 93133d489..0fbe4477c 100644 --- a/AppKit/Themes/BlendKit/BKThemeDescriptor.j +++ b/AppKit/Themes/BlendKit/BKThemeDescriptor.j @@ -181,7 +181,7 @@ var ItemSizes = { }, if ([object isKindOfClass:[CPView class]]) { var size = [object frame].size, - labelWidth = [[template valueForKey:@"label"] sizeWithFont:[CPFont boldSystemFontOfSize:12.0]].width + 20.0; + labelWidth = [[template valueForKey:@"label"] sizeWithFont:[CPFont boldSystemFontOfSize:0]].width + 20.0; if (size.width > itemSize.width) itemSize.width = size.width; diff --git a/AppKit/Themes/Default/AppController.j b/AppKit/Themes/Default/AppController.j index 8ccddb630..66ea14d1a 100644 --- a/AppKit/Themes/Default/AppController.j +++ b/AppKit/Themes/Default/AppController.j @@ -142,7 +142,7 @@ [_label setAlignment:CPCenterTextAlignment]; [_label setAutoresizingMask:CPViewMinYMargin | CPViewWidthSizable]; - [_label setFont:[CPFont boldSystemFontOfSize:12.0]]; + [_label setFont:[CPFont boldSystemFontOfSize:0]]; [self addSubview:_label]; } diff --git a/Foundation/_CGGeometry.h b/Foundation/_CGGeometry.h index 5ea60e41c..48f91807d 100644 --- a/Foundation/_CGGeometry.h +++ b/Foundation/_CGGeometry.h @@ -80,6 +80,7 @@ CGGeometry is not a part of Foundation. The reason _CGGeometry.h exists, and is #define _CGInsetMake(_top, _right, _bottom, _left) { top:(_top), right:(_right), bottom:(_bottom), left:(_left) } #define _CGInsetMakeCopy(anInset) _CGInsetMake(anInset.top, anInset.right, anInset.bottom, anInset.left) +#define _CGInsetMakeInvertedCopy(anInset) _CGInsetMake(-anInset.top, -anInset.right, -anInset.bottom, -anInset.left) #define _CGInsetMakeZero() _CGInsetMake(0, 0, 0, 0) #define _CGInsetIsEmpty(anInset) ((anInset).top === 0 && (anInset).right === 0 && (anInset).bottom === 0 && (anInset).left === 0) #define _CGInsetEqualToInset(lhsInset, rhsInset) ((lhsInset).top === (rhsInset).top && (lhsInset).right === (rhsInset).right && (lhsInset).bottom === (rhsInset).bottom && (lhsInset).left === (rhsInset).left) diff --git a/Foundation/_CGGeometry.j b/Foundation/_CGGeometry.j index bbb116d9b..be7bc79b3 100644 --- a/Foundation/_CGGeometry.j +++ b/Foundation/_CGGeometry.j @@ -72,6 +72,7 @@ _function(CGRectContainsPoint(aRect, aPoint)) _function(CGInsetMake(top, right, bottom, left)) _function(CGInsetMakeZero()) _function(CGInsetMakeCopy(anInset)) +_function(CGInsetMakeInvertedCopy(anInset)) _function(CGInsetIsEmpty(anInset)) _function(CGInsetEqualToInset(lhsInset, rhsInset))