Start work on styling of follower avatars in facepiles

* Make follower avatars smaller than top-level avatars
* Make avatars in facepiles overlap
* Render an opaque background behind avatars in facepiles.
This commit is contained in:
Max Brunsfeld
2023-02-22 11:34:55 -05:00
committed by Julia
parent 0dc92bec5c
commit b7cf426908
3 changed files with 50 additions and 23 deletions
+16 -8
View File
@@ -41,6 +41,7 @@ export default function workspace(colorScheme: ColorScheme) {
},
};
const avatarWidth = 18;
const followerAvatarWidth = 14;
return {
background: background(layer),
@@ -80,7 +81,6 @@ export default function workspace(colorScheme: ColorScheme) {
},
statusBar: statusBar(colorScheme),
titlebar: {
avatarWidth,
avatarMargin: 8,
height: 33, // 32px + 1px for overlaid border
background: background(layer),
@@ -95,6 +95,7 @@ export default function workspace(colorScheme: ColorScheme) {
// Collaborators
avatar: {
width: avatarWidth,
cornerRadius: avatarWidth / 2,
border: {
color: "#00000088",
@@ -102,6 +103,7 @@ export default function workspace(colorScheme: ColorScheme) {
},
},
inactiveAvatar: {
width: avatarWidth,
cornerRadius: avatarWidth / 2,
border: {
color: "#00000088",
@@ -109,6 +111,15 @@ export default function workspace(colorScheme: ColorScheme) {
},
grayscale: true,
},
followerAvatar: {
width: followerAvatarWidth,
cornerRadius: followerAvatarWidth / 2,
border: {
color: "#00000088",
width: 1,
},
},
followerAvatarOverlap: 4,
avatarRibbon: {
height: 3,
width: 12,
@@ -118,7 +129,7 @@ export default function workspace(colorScheme: ColorScheme) {
// Sign in buttom
// FlatButton, Variant
signInPrompt: {
...titlebarButton
...titlebarButton,
},
// Offline Indicator
@@ -184,8 +195,8 @@ export default function workspace(colorScheme: ColorScheme) {
background: foreground(layer, "accent"),
},
shareButton: {
...titlebarButton
}
...titlebarButton,
},
},
toolbar: {
@@ -241,9 +252,6 @@ export default function workspace(colorScheme: ColorScheme) {
shadow: colorScheme.modalShadow,
},
},
dropTargetOverlayColor: withOpacity(
foreground(layer, "variant"),
0.5
),
dropTargetOverlayColor: withOpacity(foreground(layer, "variant"), 0.5),
};
}