Skip to content

Commit e6a647d

Browse files
committed
refactor: align panel surface corners with settings
1 parent 663718c commit e6a647d

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎EdgeMark/UI/Components/PageLayout.swift‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ struct PageLayout<Header: View, Content: View>: View {
2929
.padding(.horizontal, 16)
3030
.padding(.vertical, 12)
3131
.background { PanelContentSurface() }
32-
.clipShape(RoundedRectangle(cornerRadius: SurfaceMetrics.panelCornerRadius))
32+
.clipShape(
33+
RoundedRectangle(
34+
cornerRadius: SurfaceMetrics.panelCornerRadius,
35+
style: .continuous,
36+
),
37+
)
3338
.overlay {
3439
if let onSwipeBack {
3540
SwipeDetectorView(onSwipeBack: onSwipeBack)
@@ -38,7 +43,12 @@ struct PageLayout<Header: View, Content: View>: View {
3843

3944
content
4045
.background { PanelContentSurface() }
41-
.clipShape(RoundedRectangle(cornerRadius: SurfaceMetrics.panelCornerRadius))
46+
.clipShape(
47+
RoundedRectangle(
48+
cornerRadius: SurfaceMetrics.panelCornerRadius,
49+
style: .continuous,
50+
),
51+
)
4252
.overlay {
4353
if onContentSwipeRight != nil || onContentSwipeLeft != nil {
4454
SwipeDetectorView(

‎EdgeMark/UI/Components/SurfaceMetrics.swift‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import CoreGraphics
33
/// Shared measurements for panel chrome and compact functional controls.
44
/// Content-specific spacing remains owned by the view that renders that content.
55
enum SurfaceMetrics {
6-
static let panelCornerRadius: CGFloat = 10
6+
/// Matches the continuous 12-point corners of native grouped Settings sections.
7+
static let panelCornerRadius: CGFloat = 12
78
static let panelSectionSpacing: CGFloat = 8
89
static let classicControlCornerRadius: CGFloat = 6
910
static let compactControlSize: CGFloat = 28

0 commit comments

Comments
 (0)