better structure

This commit is contained in:
2024-10-29 19:02:14 +01:00
parent ac39556c24
commit dd214f95f8
4 changed files with 192 additions and 192 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
pub mod components;
pub mod key;
pub mod macros;
pub mod style;
pub mod ui;
pub mod utils;
use crossterm::{self, ExecutableCommand};
@@ -23,7 +22,7 @@ pub struct Component {
pub clicked: bool,
pub toggle: bool,
pub binds: HashMap<key::KeyKind, String>,
pub style: style::Style,
pub style: ui::Style,
}
impl Component {
@@ -44,7 +43,7 @@ impl Component {
clicked: false,
toggle: false,
binds: HashMap::new(),
style: style::Style::new(),
style: ui::Style::new(),
}
}