zed/assets/themes/_base.toml 🔗
@@ -23,7 +23,7 @@ color = "$text.2"
color = "$text.0"
[chat_panel.message]
-text = "$text.0"
+body = "$text.0"
[selector]
background = "$surface.2"
Antonio Scandurra and Nathan Sobo created
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
zed/assets/themes/_base.toml | 2 +-
zed/src/chat_panel.rs | 4 ++--
zed/src/theme.rs | 3 +--
3 files changed, 4 insertions(+), 5 deletions(-)
@@ -23,7 +23,7 @@ color = "$text.2"
color = "$text.0"
[chat_panel.message]
-text = "$text.0"
+body = "$text.0"
[selector]
background = "$surface.2"
@@ -116,12 +116,12 @@ impl ChatPanel {
fn render_message(&self, message: &ChannelMessage) -> ElementBox {
let settings = self.settings.borrow();
- Label::new(
+ Text::new(
message.body.clone(),
settings.ui_font_family,
settings.ui_font_size,
)
- .with_style(&settings.theme.chat_panel.message.label)
+ .with_style(&settings.theme.chat_panel.message.body)
.boxed()
}
@@ -60,8 +60,7 @@ pub struct ChatPanel {
#[derive(Debug, Default, Deserialize)]
pub struct ChatMessage {
- #[serde(flatten)]
- pub label: LabelStyle,
+ pub body: TextStyle,
}
#[derive(Debug, Default, Deserialize)]