Update collab panel empty state to match project panel

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nate Butler 2023-08-16 13:56:11 -04:00
parent 43127384c6
commit 925e09e012
2 changed files with 33 additions and 1 deletions

View file

@ -2299,6 +2299,8 @@ impl View for CollabPanel {
MouseEventHandler::new::<LogInButton, _>(0, cx, |state, _| { MouseEventHandler::new::<LogInButton, _>(0, cx, |state, _| {
let button = theme.log_in_button.style_for(state); let button = theme.log_in_button.style_for(state);
Label::new("Sign in to collaborate", button.text.clone()) Label::new("Sign in to collaborate", button.text.clone())
.aligned()
.left()
.contained() .contained()
.with_style(button.container) .with_style(button.container)
}) })

View file

@ -153,7 +153,37 @@ export default function contacts_panel(): any {
return { return {
...collab_modals(), ...collab_modals(),
log_in_button: text_button(), log_in_button: interactive({
base: {
background: background(theme.middle),
border: border(theme.middle, "active"),
corner_radius: 4,
margin: {
top: 4,
left: 16,
right: 16,
},
padding: {
top: 3,
bottom: 3,
left: 7,
right: 7,
},
...text(theme.middle, "sans", "default", { size: "sm" }),
},
state: {
hovered: {
...text(theme.middle, "sans", "default", { size: "sm" }),
background: background(theme.middle, "hovered"),
border: border(theme.middle, "active"),
},
clicked: {
...text(theme.middle, "sans", "default", { size: "sm" }),
background: background(theme.middle, "pressed"),
border: border(theme.middle, "active"),
},
},
}),
background: background(layer), background: background(layer),
padding: { padding: {
top: SPACING, top: SPACING,