diff --git a/assets/settings/default.json b/assets/settings/default.json index 5d195f4bcd275796d942aac69f5a3cde40f9709d..02df278d669b7c150d8b9d99b0167debb26c08fc 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.rs index e78d60d2a4298cbe5e92d5b9da2f5d4377e7c0a6..67cfff6da1051247b2f462c96febd0f09c882963 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, - /// 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, /// The name of the Zed theme to use. diff --git a/crates/theme/src/settings.rs b/crates/theme/src/settings.rs index 83cd7f9f2e55bc0a510d8653f397fbfc994c18e7..ca7ad66f0f02bb6167ed2e004a74aa5c90d9c161 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, - /// 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, /// 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::() .map(|size| size.0)