mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Add missing people panel properties to base theme
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
23652f2ba6
commit
4ca5814470
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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(),
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue