rat_widget/pager/
pager_style.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use crate::_private::NonExhaustive;
use ratatui::layout::Alignment;
use ratatui::prelude::Style;
use ratatui::widgets::Block;

/// All styles for a pager.
#[derive(Debug, Clone)]
pub struct PagerStyle {
    pub style: Style,
    pub label_style: Option<Style>,
    pub label_alignment: Option<Alignment>,
    pub navigation: Option<Style>,
    pub title: Option<Style>,
    pub block: Option<Block<'static>>,
    pub non_exhaustive: NonExhaustive,
}

impl Default for PagerStyle {
    fn default() -> Self {
        Self {
            style: Default::default(),
            label_style: None,
            label_alignment: None,
            navigation: None,
            title: None,
            block: None,
            non_exhaustive: NonExhaustive,
        }
    }
}