Bug 214390 - MiniBrowser toolbar is ugly with default macOS Big Sur style
Summary: MiniBrowser toolbar is ugly with default macOS Big Sur style
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-15 17:59 PDT by Dean Jackson
Modified: 2020-07-15 18:39 PDT (History)
3 users (show)

See Also:


Attachments
Patch (13.05 KB, patch)
2020-07-15 18:03 PDT, Dean Jackson
thorton: review+
Details | Formatted Diff | Diff
Before (70.38 KB, image/png)
2020-07-15 18:06 PDT, Dean Jackson
no flags Details
After (in dark mode) (45.06 KB, image/png)
2020-07-15 18:07 PDT, Dean Jackson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2020-07-15 17:59:08 PDT
MiniBrowser toolbar is ugly with default macOS Big Sur styl
Comment 1 Radar WebKit Bug Importer 2020-07-15 17:59:40 PDT
<rdar://problem/65637420>
Comment 2 Dean Jackson 2020-07-15 18:03:12 PDT
Created attachment 404409 [details]
Patch
Comment 3 Dean Jackson 2020-07-15 18:06:25 PDT
Created attachment 404410 [details]
Before
Comment 4 Dean Jackson 2020-07-15 18:07:34 PDT
Created attachment 404411 [details]
After (in dark mode)
Comment 5 Tim Horton 2020-07-15 18:15:13 PDT
Comment on attachment 404409 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=404409&action=review

> Tools/MiniBrowser/mac/BrowserWindowController.m:46
> +#if TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000

Why the TARGET_ check?

> Tools/MiniBrowser/mac/BrowserWindowController.m:51
> +    reloadButton.image = [NSImage imageWithSystemSymbolName:@"arrow.clockwise" accessibilityDescription:@"Reload"];

I believe it is possible to specify symbols in IB? But I could be wrong.
Comment 6 Sam Weinig 2020-07-15 18:31:35 PDT
Seems like @available should be used instead for best practices here.
Comment 7 Dean Jackson 2020-07-15 18:39:47 PDT
Committed r264441: <https://trac.webkit.org/changeset/264441>