Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ public struct HighlightingMenuItem<Content: View>: View, MacControlCenterMenuIte
// MARK: Helpers

private var backgroundShape: some Shape {
RoundedRectangle(cornerSize: .init(width: 5, height: 5))
if #available(macOS 26, *) {
RoundedRectangle(cornerSize: .init(width: 10, height: 10), style: .continuous)
} else {
RoundedRectangle(cornerSize: .init(width: 5, height: 5))
}
}

private var visualEffect: VisualEffect? {
Expand Down
10 changes: 9 additions & 1 deletion Sources/MacControlCenterUI/Menu Internal/Menu Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ enum MenuGeometry {
static let menuItemStandardHoverBackColor = Color(NSColor.selectedContentBackgroundColor)

static let menuHorizontalContentInset: CGFloat = 14
static let menuHorizontalHighlightInset: CGFloat = 4

static var menuHorizontalHighlightInset: CGFloat {
if #available(macOS 26, *) {
return 6
} else {
return 4
}
}

static let menuVerticalPadding: CGFloat = 1
static let menuItemPadding: CGFloat = 4
static let menuItemContentStandardHeight: CGFloat = 18
Expand Down