Revision: 15241
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15241&view=rev
Author:   hofman
Date:     2009-04-29 17:39:29 +0000 (Wed, 29 Apr 2009)

Log Message:
-----------
reduce count bubble size for small count

Modified Paths:
--------------
    trunk/bibdesk/BDSKGroupCell.m

Modified: trunk/bibdesk/BDSKGroupCell.m
===================================================================
--- trunk/bibdesk/BDSKGroupCell.m       2009-04-29 17:33:43 UTC (rev 15240)
+++ trunk/bibdesk/BDSKGroupCell.m       2009-04-29 17:39:29 UTC (rev 15241)
@@ -198,7 +198,7 @@
         countSize = [self iconSizeForBounds:aRect];
     } else if ([self count] > 0) {
         countSize = [countString boundingRectWithSize:aRect.size 
options:0].size;
-        countSize.width += [self count] < 100 ? countSize.height : 0.7 * 
countSize.height; // add oval pading around count
+        countSize.width += ([self count] < 100 ? 0.9 : 0.7) * 
countSize.height; // add oval pading around count
     }
     NSRect countRect, ignored;
     if (countSize.width > 0.0) {
@@ -229,7 +229,7 @@
         countSize = NSMakeSize(16, 16);
     } else if ([self count] > 0) {
         countSize = [countString boundingRectWithSize:cellSize options:0].size;
-        countSize.width += [self count] < 100 ? countSize.height : 0.7 * 
countSize.height; // add oval pading around count
+        countSize.width += ([self count] < 100 ? 0.9 : 0.7) * 
countSize.height; // add oval pading around count
     }
     // cellSize.height approximates the icon size
     cellSize.width += BORDER_BETWEEN_EDGE_AND_IMAGE + cellSize.height + 
BORDER_BETWEEN_IMAGE_AND_TEXT;
@@ -283,7 +283,7 @@
         if ([self failedDownload]) {
             [self drawIcon:[NSImage imageNamed:@"BDSKSmallCautionIcon"] 
withFrame:countRect inView:controlView];
         } else if (count > 0) {
-            CGFloat countInset = count < 100 ? 0.5 * NSHeight(countRect) : 
0.35 * NSHeight(countRect);
+            CGFloat countInset = (count < 100 ? 0.45 : 0.35) * 
NSHeight(countRect);
             NSColor *fgColor;
             NSColor *bgColor;
             if ([controlView 
respondsToSelector:@selector(setSelectionHighlightStyle:)]) {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to