mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 02:37:21 +00:00
Tweak avatar sizes in titlebar
This commit is contained in:
parent
6ce76ca13e
commit
a5039cad65
3 changed files with 7 additions and 5 deletions
|
@ -42,6 +42,7 @@ pub struct Workspace {
|
|||
pub struct Titlebar {
|
||||
#[serde(flatten)]
|
||||
pub container: ContainerStyle,
|
||||
pub height: f32,
|
||||
pub title: TextStyle,
|
||||
pub avatar_width: f32,
|
||||
pub offline_icon: OfflineIcon,
|
||||
|
|
|
@ -984,7 +984,7 @@ impl Workspace {
|
|||
.with_style(theme.workspace.titlebar.container)
|
||||
.boxed(),
|
||||
)
|
||||
.with_height(32.)
|
||||
.with_height(theme.workspace.titlebar.height)
|
||||
.named("titlebar")
|
||||
}
|
||||
|
||||
|
|
|
@ -6,9 +6,10 @@ background = "$surface.0"
|
|||
pane_divider = { width = 1, color = "$border.0" }
|
||||
|
||||
[workspace.titlebar]
|
||||
height = 32
|
||||
border = { width = 1, bottom = true, color = "$border.0" }
|
||||
title = "$text.0"
|
||||
avatar_width = 20
|
||||
avatar_width = 18
|
||||
icon_color = "$text.2.color"
|
||||
avatar = { corner_radius = 10, border = { width = 1, color = "#00000088" } }
|
||||
outdated_warning = { extends = "$text.2", size = 13 }
|
||||
|
@ -46,7 +47,7 @@ background = "$surface.1"
|
|||
text = "$text.0"
|
||||
|
||||
[workspace.sidebar]
|
||||
width = 32
|
||||
width = 30
|
||||
border = { right = true, width = 1, color = "$border.0" }
|
||||
|
||||
[workspace.sidebar.resize_handle]
|
||||
|
@ -149,7 +150,7 @@ color = "$text.1.color"
|
|||
[contacts_panel]
|
||||
extends = "$panel"
|
||||
host_row_height = 28
|
||||
host_avatar = { corner_radius = 10, width = 20 }
|
||||
host_avatar = { corner_radius = 10, width = 18 }
|
||||
host_username = { extends = "$text.0", padding.left = 8 }
|
||||
tree_branch_width = 1
|
||||
tree_branch_color = "$surface.2"
|
||||
|
@ -157,7 +158,7 @@ tree_branch_color = "$surface.2"
|
|||
[contacts_panel.worktree]
|
||||
height = 24
|
||||
padding = { left = 8 }
|
||||
guest_avatar = { corner_radius = 8, width = 16 }
|
||||
guest_avatar = { corner_radius = 8, width = 14 }
|
||||
guest_avatar_spacing = 4
|
||||
|
||||
[contacts_panel.worktree.name]
|
||||
|
|
Loading…
Reference in a new issue