mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-01 09:20:33 +08:00
bin: Rename paragraph to textarea
This commit is contained in:
@@ -28,7 +28,7 @@ use tui::store::StateValue;
|
||||
use tui::ui::items::{Filter, NotificationItem, NotificationItemFilter};
|
||||
use tui::ui::span;
|
||||
use tui::ui::widget::container::{Column, Container, Footer, FooterProps, Header, HeaderProps};
|
||||
use tui::ui::widget::text::{Paragraph, ParagraphProps};
|
||||
use tui::ui::widget::text::{TextArea, TextAreaProps};
|
||||
use tui::ui::widget::window::{Page, PageProps, Shortcuts, ShortcutsProps, Window, WindowProps};
|
||||
use tui::ui::widget::{ToWidget, Widget};
|
||||
use tui::{BoxedAny, Channel, Exit, PageStack};
|
||||
@@ -391,7 +391,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
.into()
|
||||
}))
|
||||
.content(
|
||||
Paragraph::default()
|
||||
TextArea::default()
|
||||
.to_widget(tx.clone())
|
||||
.on_event(|_, s, _| {
|
||||
Some(Message::ScrollHelp {
|
||||
@@ -399,7 +399,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
})
|
||||
})
|
||||
.on_update(|state: &State| {
|
||||
ParagraphProps::default()
|
||||
TextAreaProps::default()
|
||||
.text(&help_text())
|
||||
.page_size(state.help.page_size)
|
||||
.to_boxed_any()
|
||||
|
||||
@@ -23,7 +23,7 @@ use tui::store::StateValue;
|
||||
use tui::ui::items::{Filter, IssueItem, IssueItemFilter};
|
||||
use tui::ui::span;
|
||||
use tui::ui::widget::container::{Column, Container, Footer, FooterProps, Header, HeaderProps};
|
||||
use tui::ui::widget::text::{Paragraph, ParagraphProps};
|
||||
use tui::ui::widget::text::{TextArea, TextAreaProps};
|
||||
use tui::ui::widget::window::{Page, PageProps, Shortcuts, ShortcutsProps, Window, WindowProps};
|
||||
use tui::ui::widget::{ToWidget, Widget};
|
||||
|
||||
@@ -309,7 +309,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
.into()
|
||||
}))
|
||||
.content(
|
||||
Paragraph::default()
|
||||
TextArea::default()
|
||||
.to_widget(tx.clone())
|
||||
.on_event(|_, s, _| {
|
||||
Some(Message::ScrollHelp {
|
||||
@@ -317,7 +317,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
})
|
||||
})
|
||||
.on_update(|state: &State| {
|
||||
ParagraphProps::default()
|
||||
TextAreaProps::default()
|
||||
.text(&help_text())
|
||||
.page_size(state.help.page_size)
|
||||
.to_boxed_any()
|
||||
|
||||
@@ -21,7 +21,7 @@ use tui::store;
|
||||
use tui::ui::items::{Filter, PatchItem, PatchItemFilter};
|
||||
use tui::ui::span;
|
||||
use tui::ui::widget::container::{Column, Container, Footer, FooterProps, Header, HeaderProps};
|
||||
use tui::ui::widget::text::{Paragraph, ParagraphProps};
|
||||
use tui::ui::widget::text::{TextArea, TextAreaProps};
|
||||
use tui::ui::widget::window::{Page, PageProps, Shortcuts, ShortcutsProps, Window, WindowProps};
|
||||
use tui::ui::widget::{ToWidget, Widget};
|
||||
|
||||
@@ -308,7 +308,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
.into()
|
||||
}))
|
||||
.content(
|
||||
Paragraph::default()
|
||||
TextArea::default()
|
||||
.to_widget(tx.clone())
|
||||
.on_event(|_, s, _| {
|
||||
Some(Message::ScrollHelp {
|
||||
@@ -316,7 +316,7 @@ fn help_page(_state: &State, channel: &Channel<Message>) -> Widget<State, Messag
|
||||
})
|
||||
})
|
||||
.on_update(|state: &State| {
|
||||
ParagraphProps::default()
|
||||
TextAreaProps::default()
|
||||
.text(&help_text())
|
||||
.page_size(state.help.page_size)
|
||||
.to_boxed_any()
|
||||
|
||||
Reference in New Issue
Block a user