Add mockup accurate avatar background

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Julia
2023-02-22 11:34:55 -05:00
co-authored by Max Brunsfeld
parent 7f4da80386
commit 9b92a8e3fe
4 changed files with 56 additions and 30 deletions
+9 -13
View File
@@ -41,7 +41,9 @@ export default function workspace(colorScheme: ColorScheme) {
},
};
const avatarWidth = 18;
const avatarOuterWidth = avatarWidth + 4;
const followerAvatarWidth = 14;
const followerAvatarOuterWidth = followerAvatarWidth + 4;
return {
background: background(layer),
@@ -96,30 +98,24 @@ export default function workspace(colorScheme: ColorScheme) {
// Collaborators
avatar: {
width: avatarWidth,
outerWidth: avatarOuterWidth,
cornerRadius: avatarWidth / 2,
border: {
color: "#00000088",
width: 1,
},
outerCornerRadius: avatarOuterWidth / 2,
},
inactiveAvatar: {
width: avatarWidth,
outerWidth: avatarOuterWidth,
cornerRadius: avatarWidth / 2,
border: {
color: "#00000088",
width: 1,
},
outerCornerRadius: avatarOuterWidth / 2,
grayscale: true,
},
followerAvatar: {
width: followerAvatarWidth,
outerWidth: followerAvatarOuterWidth,
cornerRadius: followerAvatarWidth / 2,
border: {
color: "#00000088",
width: 1,
},
outerCornerRadius: followerAvatarOuterWidth / 2,
},
followerAvatarOverlap: 6,
followerAvatarOverlap: 8,
avatarRibbon: {
height: 3,
width: 12,