Skip to content

Commit

Permalink
text removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy committed May 1, 2024
1 parent 407f395 commit bc1e765
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,14 @@ use crate::app::App;

pub fn render(app: &mut App, frame: &mut Frame) {
frame.render_widget(
Paragraph::new(format!(
"This is a tui template.\n\
Press `Esc`, `Ctrl-C` or `q` to stop running.\n\
Press left and right to increment and decrement the counter respectively.\n\
Content:\n {}",
app.content
))
.block(
Block::bordered()
.title("Template")
.title_alignment(Alignment::Center)
.border_type(BorderType::Rounded),
)
.style(Style::default().fg(Color::Cyan).bg(Color::Black))
.centered(),
Paragraph::new(format!("{}", app.content))
.block(
Block::bordered()
.title("Template")
.title_alignment(Alignment::Center)
.border_type(BorderType::Rounded),
)
.style(Style::default().fg(Color::Cyan).bg(Color::Black)),
frame.size(),
)
}

0 comments on commit bc1e765

Please sign in to comment.