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
+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)