Skip to content

Commit b2b818e

Browse files
square-tombstudioclaude
committed
docs(mobile): cite the in-repo desktop squircle path
Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Tom Brow <[email protected]>
1 parent 006d690 commit b2b818e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎mobile/ios/Runner/NativeAddMembersSheet.swift‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,8 @@ final class NativeAddMembersViewController: UITableViewController, UISearchResul
293293
}.withRenderingMode(.alwaysOriginal)
294294
}
295295

296-
/// Mirrors avatar_shape.dart and desktop's avatar-squircle.svg.
296+
/// Mirrors avatar_shape.dart and desktop's `ROUNDED_SQUIRCLE_PATH`
297+
/// (desktop/src/shared/ui/AvatarClipPaths.tsx).
297298
private static func agentSquircle(_ rect: CGRect) -> UIBezierPath {
298299
func at(_ x: CGFloat, _ y: CGFloat) -> CGPoint {
299300
CGPoint(x: rect.minX + rect.width * x, y: rect.minY + rect.height * y)

‎mobile/lib/shared/widgets/avatar_shape.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'package:flutter/widgets.dart';
22

33
/// The single source of avatar silhouettes.
44
///
5-
/// Agents use desktop's squircle (`avatar-squircle.svg`) and people use
6-
/// circles. Every avatar frame, clip, halo and placeholder takes its shape
5+
/// Agents use desktop's squircle (`ROUNDED_SQUIRCLE_PATH` in
6+
/// `desktop/src/shared/ui/AvatarClipPaths.tsx`) and people use circles. Every avatar frame, clip, halo and placeholder takes its shape
77
/// from here, so the two never drift apart across surfaces or clients.
88
OutlinedBorder avatarShape({
99
required bool isAgent,

0 commit comments

Comments
 (0)