Browse files

A corner radius of 6 looks better on Mountain Lion

  • Loading branch information...
1 parent 7060b43 commit 1820854d6a85ca97d6fd265a5023fdfbf08889b5 @kgn kgn committed Feb 17, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 INAppStoreWindow.m
View
8 INAppStoreWindow.m
@@ -19,6 +19,7 @@
#define IN_RUNNING_LION (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)
#define IN_COMPILING_LION __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
+#define IN_COMPILING_MOUNTAIN __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
/** -----------------------------------------
- There are 2 sets of colors, one for an active (key) state and one for an inactivate state
@@ -46,10 +47,15 @@
#define IN_COLOR_NOTMAIN_BOTTOM_L [NSColor colorWithDeviceWhite:0.655 alpha:1.0]
/** Corner clipping radius **/
+#if IN_COMPILING_MOUNTAIN
+const CGFloat INCornerClipRadius = 6.0;
+#else
const CGFloat INCornerClipRadius = 4.0;
+#endif
+
const CGFloat INButtonTopOffset = 3.0;
-NS_INLINE CGFloat INMidHeight(NSRect aRect) {
+NS_INLINE CGFloat INMidHeight(NSRect aRect){
return (aRect.size.height * (CGFloat)0.5);
}

0 comments on commit 1820854

Please sign in to comment.