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