modified src/ui/widget.rs
@@ -19,8 +19,9 @@ pub type BoxedWidget<S, A> = Box<dyn Widget<State = S, Action = A>>;
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -29,7 +30,17 @@ pub struct BaseView<S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -107,8 +118,16 @@ pub trait Widget {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -135,13 +154,6 @@ pub trait Widget {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/ui/widget/container.rs
@@ -10,7 +10,7 @@ use ratatui::widgets::{Block, BorderType, Borders, Row};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -71,7 +71,7 @@ pub struct Header<'a: 'static, S, A> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -93,11 +93,7 @@ impl<'a: 'static, S, A> Widget for Header<'a, S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -170,7 +166,11 @@ impl<'a: 'static, S, A> Widget for Header<'a, S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -212,7 +212,7 @@ pub struct Footer<'a, S, A> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -256,11 +256,7 @@ impl<'a: 'static, S, A> Widget for Footer<'a, S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -309,7 +305,11 @@ impl<'a: 'static, S, A> Widget for Footer<'a, S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -331,7 +331,7 @@ impl BoxedAny for ContainerProps {}
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -368,12 +368,7 @@ impl<S, A> Widget for Container<S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -451,7 +446,11 @@ impl<S, A> Widget for Container<S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -482,7 +481,7 @@ impl BoxedAny for SectionGroupProps {}
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -522,11 +521,7 @@ impl<S: 'static, A: 'static> Widget for SectionGroup<S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -584,7 +579,11 @@ impl<S: 'static, A: 'static> Widget for SectionGroup<S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/ui/widget/input.rs
@@ -6,7 +6,7 @@ use ratatui::layout::{Constraint, Layout};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -58,7 +58,7 @@ impl BoxedAny for TextFieldState {}
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -137,11 +137,7 @@ impl<S: 'static, A: 'static> Widget for TextField<S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -238,7 +234,11 @@ impl<S: 'static, A: 'static> Widget for TextField<S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/ui/widget/list.rs
@@ -14,7 +14,7 @@ use crate::ui::theme::style;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -93,7 +93,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -168,11 +168,7 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -277,7 +273,11 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/ui/widget/text.rs
@@ -5,7 +5,7 @@ use termion::event::Key;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -55,7 +55,7 @@ impl BoxedAny for ParagraphState {}
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -145,11 +145,7 @@ impl<'a: 'static, S: 'static, A: 'static> Widget for Paragraph<'a, S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -204,7 +200,11 @@ impl<'a: 'static, S: 'static, A: 'static> Widget for Paragraph<'a, S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/ui/widget/window.rs
@@ -12,7 +12,7 @@ use ratatui::widgets::Row;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -37,7 +37,7 @@ impl<Id> BoxedAny for WindowProps<Id> {}
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -66,11 +66,7 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -117,7 +113,11 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -159,7 +159,7 @@ pub struct Shortcuts<S, A> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -185,11 +185,7 @@ impl<S, A> Widget for Shortcuts<S, A> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -239,7 +235,11 @@ impl<S, A> Widget for Shortcuts<S, A> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|