diff --git a/zed/assets/themes/_base.toml b/zed/assets/themes/_base.toml index 1beab95ce749eb89a30808a12f384654da20c571..2d0cfd12369d270956908f8337f9dbce3bc50d23 100644 --- a/zed/assets/themes/_base.toml +++ b/zed/assets/themes/_base.toml @@ -65,6 +65,11 @@ corner_radius = 6 border = { color = "#000000", width = 1 } background = "$surface.0" +[chat_panel.input_editor_container] +background = "$surface.1" +corner_radius = 6 +padding = 6 + [chat_panel.input_editor] text = "$text.1.color" placeholder_text = "$text.2.color" diff --git a/zed/src/chat_panel.rs b/zed/src/chat_panel.rs index 8c6b85bbf1695f3de21ae3b772656eb2bffcec3a..77c5a7777d1ae1a1b4f0570a54d247f90ed680a8 100644 --- a/zed/src/chat_panel.rs +++ b/zed/src/chat_panel.rs @@ -236,9 +236,14 @@ impl ChatPanel { } fn render_input_box(&self) -> ElementBox { - ConstrainedBox::new(ChildView::new(self.input_editor.id()).boxed()) - .with_max_height(100.) - .boxed() + let theme = &self.settings.borrow().theme; + Container::new( + ConstrainedBox::new(ChildView::new(self.input_editor.id()).boxed()) + .with_max_height(100.) + .boxed(), + ) + .with_style(&theme.chat_panel.input_editor_container) + .boxed() } fn render_channel_name( diff --git a/zed/src/theme.rs b/zed/src/theme.rs index dcbec3ff2da3bdba4bbb904d4136e9e676a8544c..e15070d81837fa4b9cbef50da934273c0aaf592b 100644 --- a/zed/src/theme.rs +++ b/zed/src/theme.rs @@ -68,6 +68,7 @@ pub struct ChatPanel { pub container: ContainerStyle, pub message: ChatMessage, pub channel_select: ChannelSelect, + pub input_editor_container: ContainerStyle, pub input_editor: InputEditorStyle, } diff --git a/zed/src/workspace/sidebar.rs b/zed/src/workspace/sidebar.rs index 3d57c96c4f2422135e54bf31e1ed4be87f8d2eff..e415551a8f12a9787d3dfc8a38038708cf7759a2 100644 --- a/zed/src/workspace/sidebar.rs +++ b/zed/src/workspace/sidebar.rs @@ -37,7 +37,7 @@ impl Sidebar { side, items: Default::default(), active_item_ix: None, - width: Rc::new(RefCell::new(100.)), + width: Rc::new(RefCell::new(200.)), } }