diff --git a/zed/assets/icons/signed-out-12.svg b/zed/assets/icons/signed-out-12.svg
new file mode 100644
index 0000000000..3cecfe9dd3
--- /dev/null
+++ b/zed/assets/icons/signed-out-12.svg
@@ -0,0 +1,3 @@
+
diff --git a/zed/assets/themes/_base.toml b/zed/assets/themes/_base.toml
index 6c0c37fa98..124aa17890 100644
--- a/zed/assets/themes/_base.toml
+++ b/zed/assets/themes/_base.toml
@@ -7,7 +7,9 @@ pane_divider = { width = 1, color = "$border.0" }
[workspace.titlebar]
border = { width = 1, bottom = true, color = "$border.0" }
-text = { extends = "$text.0" }
+title = "$text.0"
+icon_width = 16
+icon_signed_out = "$text.2.color"
[workspace.tab]
text = "$text.2"
@@ -26,7 +28,7 @@ background = "$surface.1"
text = "$text.0"
[workspace.sidebar]
-padding = { left = 12, right = 12 }
+width = 36
border = { right = true, width = 1, color = "$border.0" }
[workspace.sidebar.resize_handle]
@@ -35,7 +37,7 @@ background = "$border.0"
[workspace.sidebar.icon]
color = "$text.2.color"
-height = 18
+height = 16
[workspace.sidebar.active_icon]
extends = "$workspace.sidebar.icon"
diff --git a/zed/src/theme.rs b/zed/src/theme.rs
index 12496251f4..f0c17a1cb8 100644
--- a/zed/src/theme.rs
+++ b/zed/src/theme.rs
@@ -34,7 +34,7 @@ pub struct SyntaxTheme {
#[derive(Deserialize)]
pub struct Workspace {
pub background: Color,
- pub titlebar: ContainedLabel,
+ pub titlebar: Titlebar,
pub tab: Tab,
pub active_tab: Tab,
pub pane_divider: Border,
@@ -42,6 +42,15 @@ pub struct Workspace {
pub right_sidebar: Sidebar,
}
+#[derive(Clone, Deserialize)]
+pub struct Titlebar {
+ #[serde(flatten)]
+ pub container: ContainerStyle,
+ pub title: TextStyle,
+ pub icon_width: f32,
+ pub icon_signed_out: Color,
+}
+
#[derive(Clone, Deserialize)]
pub struct Tab {
#[serde(flatten)]
@@ -60,6 +69,7 @@ pub struct Tab {
pub struct Sidebar {
#[serde(flatten)]
pub container: ContainerStyle,
+ pub width: f32,
pub icon: SidebarIcon,
pub active_icon: SidebarIcon,
pub resize_handle: ContainerStyle,
diff --git a/zed/src/workspace.rs b/zed/src/workspace.rs
index 92e05d7a8e..1dc672f728 100644
--- a/zed/src/workspace.rs
+++ b/zed/src/workspace.rs
@@ -21,7 +21,7 @@ use gpui::{
json::to_string_pretty,
keymap::Binding,
platform::WindowOptions,
- AnyViewHandle, AppContext, ClipboardItem, Entity, ImageData, ModelHandle, MutableAppContext,
+ AnyViewHandle, AppContext, ClipboardItem, Entity, ModelHandle, MutableAppContext,
PathPromptOptions, PromptLevel, RenderContext, Task, View, ViewContext, ViewHandle,
WeakModelHandle,
};
@@ -354,19 +354,10 @@ pub struct Workspace {
(usize, Arc),
postage::watch::Receiver