Write some amount of documentation
This commit is contained in:
@@ -19,12 +19,20 @@ pub enum DictFocus {
|
||||
Words,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum HelpFocus {
|
||||
#[default]
|
||||
Topics,
|
||||
Content,
|
||||
}
|
||||
|
||||
pub struct UiState {
|
||||
pub sparkles: Sparkles,
|
||||
pub status_message: Option<String>,
|
||||
pub flash_until: Option<Instant>,
|
||||
pub flash_kind: FlashKind,
|
||||
pub modal: Modal,
|
||||
pub help_focus: HelpFocus,
|
||||
pub help_topic: usize,
|
||||
pub help_scrolls: Vec<usize>,
|
||||
pub help_search_active: bool,
|
||||
@@ -52,6 +60,7 @@ impl Default for UiState {
|
||||
flash_until: None,
|
||||
flash_kind: FlashKind::Success,
|
||||
modal: Modal::None,
|
||||
help_focus: HelpFocus::default(),
|
||||
help_topic: 0,
|
||||
help_scrolls: vec![0; crate::views::help_view::topic_count()],
|
||||
help_search_active: false,
|
||||
|
||||
Reference in New Issue
Block a user