Update doc comments for agent_buffer_font_size (#39743)

Follow up to https://github.com/zed-industries/zed/pull/39468.

Unlike `agent_ui_font_size`, the `agent_buffer_font_size` setting does
have a default value, which means it does not fall back to the regular
UI font size, but rather to its default value.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-10-08 06:14:18 +00:00
committed by GitHub
parent 294ca25f44
commit 1265b229a9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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,
@@ -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.
+2 -2
View File
@@ -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)