Skip to main content

gpui_base/
list_settings.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4/// Global settings for list presentation behavior.
5#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
6#[non_exhaustive]
7pub struct ListSettings {
8    /// Whether list items use the active highlight style by default.
9    pub active_highlight: bool,
10}
11
12impl Default for ListSettings {
13    fn default() -> Self {
14        Self {
15            active_highlight: true,
16        }
17    }
18}