Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add missing docstrings to settings.rs (#9054)

Jadi6a7a3b257a96
diff --git a/crates/theme/src/settings.rs b/crates/theme/src/settings.rs
index 1b860dec92b..2bce00c408b 100644
--- a/crates/theme/src/settings.rs
+++ b/crates/theme/src/settings.rs
@@ -155,22 +155,31 @@ impl ThemeSelection {
}
}
+/// Settings for rendering text in UI and text buffers.
#[derive(Clone, Debug, Default, Serialize, Deserialize, JsonSchema)]
pub struct ThemeSettingsContent {
+ /// The default font size for text in the UI.
#[serde(default)]
pub ui_font_size: Option<f32>,
+ /// The name of a font to use for rendering in the UI.
#[serde(default)]
pub ui_font_family: Option<String>,
+ /// The OpenType features to enable for text in the UI.
#[serde(default)]
pub ui_font_features: Option<FontFeatures>,
+ /// The name of a font to use for rendering in text buffers.
#[serde(default)]
pub buffer_font_family: Option<String>,
+ /// The default font size for rendering in text buffers.
#[serde(default)]
pub buffer_font_size: Option<f32>,
+ /// The buffer's line height.
#[serde(default)]
pub buffer_line_height: Option<BufferLineHeight>,
+ /// The OpenType features to enable for rendering in text buffers.
#[serde(default)]
pub buffer_font_features: Option<FontFeatures>,
+ /// The name of the Zed theme to use.
#[serde(default)]
pub theme: Option<ThemeSelection>,