From 30d3ce872f45d2e8e49b0a4ba18fba972c9ab619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Thu, 15 Dec 2022 10:44:21 +0800 Subject: [PATCH] feat: move the filter bar's search field one pixel up (#4367) --- macosx/FilterBar.xib | 3 +++ macosx/FilterBarView.mm | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/macosx/FilterBar.xib b/macosx/FilterBar.xib index a8d3aa4df..7f60c6e86 100644 --- a/macosx/FilterBar.xib +++ b/macosx/FilterBar.xib @@ -170,6 +170,9 @@ + + + diff --git a/macosx/FilterBarView.mm b/macosx/FilterBarView.mm index 82b992274..1341892b1 100644 --- a/macosx/FilterBarView.mm +++ b/macosx/FilterBarView.mm @@ -4,8 +4,17 @@ #import "FilterBarView.h" +@interface FilterBarView () +@property(weak) IBOutlet NSLayoutConstraint* searchFieldVerticalConstraint; +@end + @implementation FilterBarView +- (void)awakeFromNib +{ + _searchFieldVerticalConstraint.constant = -.5; +} + - (BOOL)mouseDownCanMoveWindow { return NO;