Revision: 28004
          http://sourceforge.net/p/bibdesk/svn/28004
Author:   hofman
Date:     2022-10-07 13:53:10 +0000 (Fri, 07 Oct 2022)
Log Message:
-----------
tweak layout

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

Modified: trunk/bibdesk/BDSKSecureTextField.m
===================================================================
--- trunk/bibdesk/BDSKSecureTextField.m 2022-10-06 21:24:06 UTC (rev 28003)
+++ trunk/bibdesk/BDSKSecureTextField.m 2022-10-07 13:53:10 UTC (rev 28004)
@@ -98,7 +98,7 @@
     [button setButtonType:NSToggleButton];
     [button setBordered:NO];
     [button setImagePosition:NSImageOnly];
-    [button setImageScaling:NSImageScaleProportionallyDown];
+    [button setImageScaling:NSImageScaleProportionallyUpOrDown];
     [button setImage:[[self class] showTextImage]];
     [button setAlternateImage:[[self class] hideTextImage]];
     [button setRefusesFirstResponder:YES];
@@ -106,13 +106,13 @@
     [button setAction:@selector(toggleShowsText:)];
     [button setToolTip:showsText ? NSLocalizedString(@"Hide password", @"Tool 
tip message") : NSLocalizedString(@"Show password", @"Tool tip message")];
     [button setTranslatesAutoresizingMaskIntoConstraints:NO];
-    [button setContentCompressionResistancePriority:NSLayoutPriorityDefaultLow 
forOrientation:NSLayoutConstraintOrientationHorizontal];
-    [button setContentCompressionResistancePriority:NSLayoutPriorityDefaultLow 
forOrientation:NSLayoutConstraintOrientationVertical];
+    [button setContentCompressionResistancePriority:1.0 
forOrientation:NSLayoutConstraintOrientationHorizontal];
+    [button setContentCompressionResistancePriority:1.0 
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 : -1.0;
     [self addConstraints:[NSArray arrayWithObjects:
-        [NSLayoutConstraint constraintWithTrailingMargin:1.0 + margin 
forItem:button toItem:self],
+        [NSLayoutConstraint constraintWithTrailingMargin:2.0 - [self 
alignmentRectInsets].right forItem:button toItem:self],
         [NSLayoutConstraint constraintWithTopMargin:margin forItem:button 
toItem:self],
         [NSLayoutConstraint constraintWithBottomMargin:margin forItem:button 
toItem:self], nil]];
 }

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