UI/AppKit: Make the location field bordered on Tahoe

Otherwise, it sticks out on macOS Tahoe when it is unbordered. This
matches Safari's look.
This commit is contained in:
Timothy Flynn 2025-09-16 11:55:28 -04:00 committed by Luke Wilde
parent e0a7217c4b
commit 8ebc20a4f0

View File

@ -301,6 +301,10 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
[location_search_field setTextColor:[NSColor textColor]];
[location_search_field setDelegate:self];
if (@available(macOS 26, *)) {
[location_search_field setBordered:YES];
}
_location_toolbar_item = [[NSToolbarItem alloc] initWithItemIdentifier:TOOLBAR_LOCATION_IDENTIFIER];
[_location_toolbar_item setView:location_search_field];
}