ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Constructor for DisplaySettings.

use crate::widgets::markdown_widget::foundation::elements::CodeBlockTheme;
use crate::widgets::markdown_widget::state::display_settings::DisplaySettings;

impl DisplaySettings {
    /// Create new display settings with defaults.
    pub fn new() -> Self {
        Self {
            show_line_numbers: false,
            show_document_line_numbers: false,
            code_block_theme: CodeBlockTheme::default(),
            show_heading_collapse: false,
            scroll_multiplier: 3,
        }
    }
}