Revision: 28001
          http://sourceforge.net/p/bibdesk/svn/28001
Author:   hofman
Date:     2022-10-06 14:27:05 +0000 (Thu, 06 Oct 2022)
Log Message:
-----------
tweak image

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

Modified: trunk/bibdesk/BDSKSecureTextField.m
===================================================================
--- trunk/bibdesk/BDSKSecureTextField.m 2022-10-05 22:30:38 UTC (rev 28000)
+++ trunk/bibdesk/BDSKSecureTextField.m 2022-10-06 14:27:05 UTC (rev 28001)
@@ -73,14 +73,14 @@
         [image lockFocus];
         [[NSImage imageNamed:NSImageNameQuickLookTemplate] 
drawInRect:NSMakeRect(-1.0, 3.0, 21.0, 13.0)];
         NSBezierPath *path = [NSBezierPath bezierPath];
-        [path moveToPoint:NSMakePoint(3.675, 3.935)];
-        [path relativeLineToPoint:NSMakePoint(11.0, 11.0)];
+        [path moveToPoint:NSMakePoint(3.175, 3.435)];
+        [path relativeLineToPoint:NSMakePoint(12.0, 12.0)];
         [NSGraphicsContext saveGraphicsState];
         [[NSGraphicsContext currentContext] 
setCompositingOperation:NSCompositeClear];
         [path setLineWidth:3.0];
         [path stroke];
         [NSGraphicsContext restoreGraphicsState];
-        [path setLineWidth:1.2];
+        [path setLineWidth:1.1];
         [path stroke];
         [image unlockFocus];
         [image setTemplate:YES];
@@ -106,10 +106,11 @@
     [button setContentCompressionResistancePriority:NSLayoutPriorityDefaultLow 
forOrientation:NSLayoutConstraintOrientationVertical];
     [button addConstraint:[NSLayoutConstraint constraintWithItem:button 
attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:button 
attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0.0]];
     [self addSubview:button];
+    CGFloat margin = [self isBordered] || [self isBezeled] ? 1.0 : 0.0;
     [self addConstraints:[NSArray arrayWithObjects:
-        [NSLayoutConstraint constraintWithTrailingMargin:2.0 forItem:button 
toItem:self],
-        [NSLayoutConstraint constraintWithTopMargin:1.0 forItem:button 
toItem:self],
-        [NSLayoutConstraint constraintWithBottomMargin:1.0 forItem:button 
toItem:self], nil]];
+        [NSLayoutConstraint constraintWithTrailingMargin:2.0 * margin 
forItem:button toItem:self],
+        [NSLayoutConstraint constraintWithTopMargin:margin forItem:button 
toItem:self],
+        [NSLayoutConstraint constraintWithBottomMargin:margin forItem:button 
toItem:self], nil]];
 }
 
 - (Class)cellClass {

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