Refactor view handling and keybinding API

Move the `View` enum to a dedicated module and implement `Widget` for
`&App` there.
Rename `default_view_keybindings` to `default_keybindings` and adjust
its
signature. Redesign `KeybindingsWidget` to accept an explicit list of
bindings instead of a `View`. Update imports, function signatures, and
rendering
logic across the codebase to reflect these changes.
This commit is contained in:
2026-03-13 20:10:49 +01:00
parent d563bbc966
commit 61e9dedfe8
15 changed files with 109 additions and 115 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
use crate::app::{GameMode, PerkDecks, View};
use crate::app::{GameMode, PerkDecks, view::View};
use clap::Parser;
#[derive(Parser, Debug)]