Revision: 27992
http://sourceforge.net/p/bibdesk/svn/27992
Author: hofman
Date: 2022-10-04 09:16:18 +0000 (Tue, 04 Oct 2022)
Log Message:
-----------
make password visibility toggle square
Modified Paths:
--------------
trunk/bibdesk/BDSKSecureTextField.m
Modified: trunk/bibdesk/BDSKSecureTextField.m
===================================================================
--- trunk/bibdesk/BDSKSecureTextField.m 2022-10-03 16:32:49 UTC (rev 27991)
+++ trunk/bibdesk/BDSKSecureTextField.m 2022-10-04 09:16:18 UTC (rev 27992)
@@ -99,6 +99,9 @@
[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 addConstraint:[NSLayoutConstraint constraintWithItem:button
attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:button
attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0.0]];
[self addSubview:button];
[self addConstraints:[NSArray arrayWithObjects:
[NSLayoutConstraint constraintWithTrailingMargin:2.0
forItem:button toItem:self],
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