Add missing people panel properties to base theme

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-09-20 13:38:59 -07:00
parent 23652f2ba6
commit 4ca5814470
3 changed files with 10 additions and 2 deletions

View file

@ -120,6 +120,14 @@ underline = true
extends = "$chat_panel.sign_in_prompt"
color = "$text.1.color"
[people_panel]
host_username = "$text.0"
worktree_host_avatar = { corner_radius = 10 }
worktree_guest_avatar = { corner_radius = 8 }
[people_panel.worktree_name]
extends = "$text.0"
[selector]
background = "$surface.0"
padding = 8

View file

@ -61,7 +61,7 @@ impl PeoplePanel {
.with_child(
Label::new(
collaborator.user.github_login.clone(),
theme.people_panel.collaborator_username.clone(),
theme.people_panel.host_username.clone(),
)
.boxed(),
)

View file

@ -108,7 +108,7 @@ pub struct ChatPanel {
pub struct PeoplePanel {
#[serde(flatten)]
pub container: ContainerStyle,
pub collaborator_username: TextStyle,
pub host_username: TextStyle,
pub worktree_name: ContainedText,
pub worktree_host_avatar: ImageStyle,
pub worktree_guest_avatar: ImageStyle,