1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

feat: move the filter bar's search field one pixel up (#4367)

This commit is contained in:
Cœur 2022-12-15 10:44:21 +08:00 committed by GitHub
parent 669faf7474
commit 30d3ce872f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -170,6 +170,9 @@
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="5" id="fKx-Ct-3z1"/> <constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" constant="5" id="fKx-Ct-3z1"/>
<constraint firstAttribute="trailing" secondItem="10" secondAttribute="trailing" constant="5" id="s5c-0G-9tM"/> <constraint firstAttribute="trailing" secondItem="10" secondAttribute="trailing" constant="5" id="s5c-0G-9tM"/>
</constraints> </constraints>
<connections>
<outlet property="searchFieldVerticalConstraint" destination="ecz-eJ-l9b" id="hzc-vg-t2p"/>
</connections>
<point key="canvasLocation" x="139" y="150"/> <point key="canvasLocation" x="139" y="150"/>
</customView> </customView>
<menu title="Menu" id="22" userLabel="SearchFilterMenu"> <menu title="Menu" id="22" userLabel="SearchFilterMenu">

View file

@ -4,8 +4,17 @@
#import "FilterBarView.h" #import "FilterBarView.h"
@interface FilterBarView ()
@property(weak) IBOutlet NSLayoutConstraint* searchFieldVerticalConstraint;
@end
@implementation FilterBarView @implementation FilterBarView
- (void)awakeFromNib
{
_searchFieldVerticalConstraint.constant = -.5;
}
- (BOOL)mouseDownCanMoveWindow - (BOOL)mouseDownCanMoveWindow
{ {
return NO; return NO;