Skip to content

Commit

Permalink
Bug 1872325 - Reduce macOS menupopup border radius. r=emilio,desktop-…
Browse files Browse the repository at this point in the history
…theme-reviewers

The macOS menupopup corner radius was recently changed from 4px to 8px, but that does not quite match the system, which measures at 6px.

Differential Revision: https://phabricator.services.mozilla.com/D197408
  • Loading branch information
dremin committed Dec 29, 2023
1 parent 3ca55cd commit 593c49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toolkit/themes/shared/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ panel {
--panel-background: none;
--panel-border-color: transparent;
/* This should be kept in sync with GetMenuMaskImage() */
--panel-border-radius: 8px;
--panel-border-radius: 6px;
}

&::part(content) {
Expand Down
2 changes: 1 addition & 1 deletion widget/cocoa/nsCocoaWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3592,7 +3592,7 @@ - (id)initWithContentRect:(NSRect)aContentRect

// Returns an autoreleased NSImage.
static NSImage* GetMenuMaskImage() {
const CGFloat radius = 8.0f;
const CGFloat radius = 6.0f;
const NSSize maskSize = {radius * 3.0f, radius * 3.0f};
NSImage* maskImage = [NSImage imageWithSize:maskSize
flipped:FALSE
Expand Down

0 comments on commit 593c49f

Please sign in to comment.