You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

11
+

12
12
13
13
## Summary
14
14
@@ -70,7 +70,7 @@ The corners of elements rounded by the CSS `border-radius` rule can be smoothed
@@ -81,7 +81,7 @@ The `-electron-corner-smoothing` CSS rule controls how far the corner's curvatur
81
81
82
82
To match the system rounding in macOS, use a value of `60%`. `-electron-corner-smoothing` is available across all Electron platforms.
83
83
84
-

84
+

85
85
86
86
This smooth rounding is similar to Apple's "continuous" rounded corners in SwiftUI as well as Figma's "corner smoothing" control on design elements.
87
87
@@ -109,7 +109,7 @@ The procedure for smoothing the roundness of a corner is based on the research i
109
109
110
110
At a high level, we're taking the points where the edges connect to the corner circle and stretching them back into the edge. Thus, instead of constructing a round corner with a quarter circle, we use two cubic Bézier curves to construct the corner.
111
111
112
-

112
+

113
113
114
114
The two Bézier curves' control points are carefully chosen to retain the most important qualities of a rounded corner, including the percieved radius. The original article provides a full intuition for how the curve's control points are derived.
0 commit comments