Tweak avatar sizes in titlebar

Nathan Sobo created

Change summary

crates/theme/src/lib.rs             | 1 +
crates/workspace/src/lib.rs         | 2 +-
crates/zed/assets/themes/_base.toml | 9 +++++----
3 files changed, 7 insertions(+), 5 deletions(-)

Detailed changes

crates/theme/src/lib.rs 🔗

@@ -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,

crates/workspace/src/lib.rs 🔗

@@ -984,7 +984,7 @@ impl Workspace {
             .with_style(theme.workspace.titlebar.container)
             .boxed(),
         )
-        .with_height(32.)
+        .with_height(theme.workspace.titlebar.height)
         .named("titlebar")
     }
 

crates/zed/assets/themes/_base.toml 🔗

@@ -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]