Write some amount of documentation

This commit is contained in:
2026-01-31 01:46:18 +01:00
parent 4772b02f77
commit 4f9b1f39f9
57 changed files with 2096 additions and 198 deletions

View File

@@ -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,