ratatui_toolkit/widgets/markdown_widget/state/display_settings/mod.rs
1//! Display settings for markdown widget.
2//!
3//! Manages display-related configuration like line numbers and themes.
4
5pub mod constructors;
6pub mod methods;
7pub mod traits;
8
9pub use constructors::*;
10pub use methods::*;
11pub use traits::*;
12
13use crate::widgets::markdown_widget::foundation::elements::CodeBlockTheme;
14
15/// Display settings for markdown rendering.
16///
17/// Controls visual options like line numbers, themes, and collapse indicators.
18#[derive(Debug, Clone)]
19pub struct DisplaySettings {
20 /// Whether to show line numbers in code blocks.
21 pub show_line_numbers: bool,
22 /// Whether to show line numbers for the entire document.
23 pub show_document_line_numbers: bool,
24 /// Color theme for code blocks.
25 pub code_block_theme: CodeBlockTheme,
26 /// Whether to show collapse indicators on headings.
27 pub show_heading_collapse: bool,
28 /// Scroll multiplier (lines per scroll tick).
29 pub scroll_multiplier: usize,
30}