Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update doc comments for `agent_buffer_font_size` (#39743)
Danilo Leal1265b229a979
diff --git a/assets/settings/default.json b/assets/settings/default.jsonindex 5d195f4bcd2..02df278d669 100644--- a/assets/settings/default.json+++ b/assets/settings/default.json@@ -76,7 +76,7 @@"ui_font_size": 16,// The default font size for agent responses in the agent panel. Falls back to the UI font size if unset."agent_ui_font_size": null,- // The default font size for user messages in the agent panel. Falls back to the buffer font size if unset.+ // The default font size for user messages in the agent panel."agent_buffer_font_size": 12,// How much to fade out unused code."unnecessary_code_fade": 0.3,diff --git a/crates/settings/src/settings_content/theme.rs b/crates/settings/src/settings_content/theme.rsindex e78d60d2a42..67cfff6da10 100644--- a/crates/settings/src/settings_content/theme.rs+++ b/crates/settings/src/settings_content/theme.rs@@ -57,7 +57,7 @@ pub struct ThemeSettingsContent {/// The font size for agent responses in the agent panel. Falls back to the UI font size if unset.#[serde(default)]pub agent_ui_font_size: Option<f32>,- /// The font size for user messages in the agent panel. Falls back to the buffer font size if unset.+ /// The font size for user messages in the agent panel.#[serde(default)]pub agent_buffer_font_size: Option<f32>,/// The name of the Zed theme to use.diff --git a/crates/theme/src/settings.rs b/crates/theme/src/settings.rsindex 83cd7f9f2e5..ca7ad66f0f0 100644--- a/crates/theme/src/settings.rs+++ b/crates/theme/src/settings.rs@@ -116,7 +116,7 @@ pub struct ThemeSettings {pub buffer_font: Font,/// The agent font size. Determines the size of text in the agent panel. Falls back to the UI font size if unset.agent_ui_font_size: Option<Pixels>,- /// The agent buffer font size. Determines the size of user messages in the agent panel. Falls back to the buffer font size if unset.+ /// The agent buffer font size. Determines the size of user messages in the agent panel.agent_buffer_font_size: Option<Pixels>,/// The line height for buffers, and the terminal.///@@ -549,7 +549,7 @@ impl ThemeSettings {.unwrap_or_else(|| self.ui_font_size(cx))}- /// Returns the agent panel buffer font size. Falls back to the buffer font size if unset.+ /// Returns the agent panel buffer font size.pub fn agent_buffer_font_size(&self, cx: &App) -> Pixels {cx.try_global::<AgentFontSize>().map(|size| size.0)