Introduce `BoxedAny` trait
9 files changed
+37
-26
780dbaf9
→
f5102451
modified bin/commands/inbox/select/ui.rs
@@ -23,7 +23,7 @@ use tui::ui::widget::input::{TextField, TextFieldProps, TextFieldState};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -110,6 +110,7 @@ impl<'a> From<&State> for BrowserProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -301,6 +302,7 @@ impl<'a> From<&State> for BrowserPageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -497,6 +499,7 @@ impl<'a> From<&State> for HelpPageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified bin/commands/issue/select/ui.rs
@@ -24,7 +24,7 @@ use tui::ui::widget::input::{TextField, TextFieldProps, TextFieldState};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -116,6 +116,7 @@ impl<'a> From<&State> for BrowsePageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -401,6 +402,7 @@ impl<'a> From<&State> for HelpPageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified bin/commands/patch/select/ui.rs
@@ -25,7 +25,7 @@ use tui::ui::widget::input::{TextField, TextFieldProps, TextFieldState};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -116,6 +116,7 @@ impl<'a> From<&State> for BrowsePageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -418,6 +419,7 @@ impl<'a> From<&State> for HelpPageProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/ui/widget.rs
@@ -144,16 +144,9 @@ pub trait Properties {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -161,18 +154,19 @@ pub trait Properties {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
modified src/ui/widget/container.rs
@@ -10,7 +10,7 @@ use ratatui::widgets::{Block, BorderType, Borders, Row};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -65,6 +65,7 @@ impl<'a> Default for HeaderProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -205,6 +206,7 @@ impl<'a> Default for FooterProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -325,6 +327,7 @@ impl ContainerProps {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -459,7 +462,7 @@ pub struct SectionGroupState {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -475,6 +478,7 @@ impl SectionGroupProps {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/ui/widget/input.rs
@@ -6,7 +6,7 @@ use ratatui::layout::{Constraint, Layout};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -54,7 +54,7 @@ pub struct TextFieldState {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/ui/widget/list.rs
@@ -13,7 +13,8 @@ use ratatui::widgets::TableState;
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -83,7 +84,9 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/ui/widget/text.rs
@@ -5,7 +5,7 @@ use termion::event::Key;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -41,6 +41,7 @@ impl<'a> Default for ParagraphProps<'a> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -50,7 +51,7 @@ pub struct ParagraphState {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/ui/widget/window.rs
@@ -12,7 +12,7 @@ use ratatui::widgets::Row;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -33,6 +33,7 @@ impl<Id> Default for WindowProps<Id> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -152,6 +153,7 @@ impl Default for ShortcutsProps {
|
|
|
|
|
|
| + | |
|
|
|
|
|