rat_widget/view/
view_style.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::_private::NonExhaustive;
use rat_scrolled::ScrollStyle;
use ratatui::widgets::Block;

/// All styles for a xview.
#[derive(Debug)]
pub struct ViewStyle {
    pub block: Option<Block<'static>>,
    pub scroll: Option<ScrollStyle>,

    pub non_exhaustive: NonExhaustive,
}

impl Default for ViewStyle {
    fn default() -> Self {
        Self {
            block: None,
            scroll: None,
            non_exhaustive: NonExhaustive,
        }
    }
}