Revision: 29954
          http://sourceforge.net/p/bibdesk/svn/29954
Author:   hofman
Date:     2026-01-18 17:02:02 +0000 (Sun, 18 Jan 2026)
Log Message:
-----------
margins around overflow button, thinner overflow image

Modified Paths:
--------------
    trunk/bibdesk/BDSKButtonBar.m
    trunk/bibdesk/NSImage_BDSKExtensions.m

Modified: trunk/bibdesk/BDSKButtonBar.m
===================================================================
--- trunk/bibdesk/BDSKButtonBar.m       2026-01-18 16:00:28 UTC (rev 29953)
+++ trunk/bibdesk/BDSKButtonBar.m       2026-01-18 17:02:02 UTC (rev 29954)
@@ -231,7 +231,7 @@
         while ([overflowButton numberOfItems] > 1)
             [overflowButton removeItemAtIndex:1];
     }
-    [overflowButton setFrameOrigin:NSMakePoint(NSMaxX(bounds) - 
NSWidth([overflowButton frame]), floor(0.5 * (NSHeight([self frame]) - 
NSHeight([overflowButton frame]))))];
+    [overflowButton setFrameOrigin:NSMakePoint(NSMaxX(bounds) - 
NSWidth([overflowButton frame]) - BUTTON_MARGIN, floor(0.5 * (NSHeight([self 
frame]) - NSHeight([overflowButton frame]))))];
     if ([overflowButton superview] == nil)
         [self addSubview:overflowButton];
 }
@@ -292,7 +292,7 @@
             if (wantsOverflowButton == NO) {
                 wantsOverflowButton = YES;
                 [self addOverflowButtonInFrame:bounds];
-                if (previousButton && NSMaxX([previousButton frame]) > 
NSMinX([overflowButton frame])) {
+                if (previousButton && NSMaxX([previousButton frame]) > 
NSMinX([overflowButton frame]) - BUTTON_SEPARATION) {
                     [previousButton removeFromSuperview];
                     [self addOverflowItemForButton:previousButton];
                 }

Modified: trunk/bibdesk/NSImage_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSImage_BDSKExtensions.m      2026-01-18 16:00:28 UTC (rev 
29953)
+++ trunk/bibdesk/NSImage_BDSKExtensions.m      2026-01-18 17:02:02 UTC (rev 
29954)
@@ -520,16 +520,19 @@
 + (NSImage *)overflowImage {
     static NSImage *image = nil;
     if (image == nil) {
-        image = [[NSImage alloc] initBitmapWithSize:NSMakeSize(16.0, 10.0) 
drawingHandler:^(NSRect rect){
+        image = [[NSImage alloc] initBitmapWithSize:NSMakeSize(12.0, 10.0) 
drawingHandler:^(NSRect rect){
             NSBezierPath *path = [NSBezierPath bezierPath];
-            [path moveToPoint:NSMakePoint(2.0, 1.0)];
-            [path lineToPoint:NSMakePoint(6.0, 5.0)];
-            [path lineToPoint:NSMakePoint(2.0, 9.0)];
-            [path moveToPoint:NSMakePoint(8.0, 1.0)];
-            [path lineToPoint:NSMakePoint(12.0, 5.0)];
-            [path lineToPoint:NSMakePoint(8.0, 9.0)];
+            [path moveToPoint:NSMakePoint(1.0, 1.0)];
+            [path lineToPoint:NSMakePoint(5.0, 5.0)];
+            [path lineToPoint:NSMakePoint(1.0, 9.0)];
+            [path moveToPoint:NSMakePoint(7.0, 1.0)];
+            [path lineToPoint:NSMakePoint(11.0, 5.0)];
+            [path lineToPoint:NSMakePoint(7.0, 9.0)];
             [path setLineCapStyle:NSRoundLineCapStyle];
-            [path setLineWidth:2.0];
+            if (@available(macOS 11.0, *))
+                [path setLineWidth:1.5];
+            else
+                [path setLineWidth:2.0];
             [path stroke];
         }];
         [image setTemplate:YES];

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to