Skip to content

Commit

Permalink
finalize styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cartercanedy committed Sep 28, 2024
1 parent 118855a commit 59f0448
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tui/src/confirmation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crossterm::event::{KeyCode, KeyEvent};
use ratatui::{
prelude::*,
widgets::{Block, Borders, Clear, List},
layout::Alignment
};

pub enum ConfirmStatus {
Expand Down Expand Up @@ -52,12 +53,11 @@ impl FloatContent for ConfirmPrompt {
fn draw(&mut self, frame: &mut Frame, area: Rect) {
let block = Block::default()
.borders(Borders::ALL)
.title("Confirm selections")
.title_alignment(ratatui::layout::Alignment::Center)
.title_style(Style::default().reversed())
.title(" Confirm selections ")
.title_alignment(Alignment::Center)
.title_style(Style::default().bold())
.style(Style::default());

// Draw the Block first
frame.render_widget(block.clone(), area);

let inner_area = block.inner(area);
Expand All @@ -68,7 +68,7 @@ impl FloatContent for ConfirmPrompt {
.skip(self.scroll)
.map(|p| {
let span = Span::from(Cow::<'_, str>::Borrowed(p));
Line::from(span).style(Style::default().bold())
Line::from(span).style(Style::default())
})
.collect::<Text>();

Expand Down

0 comments on commit 59f0448

Please sign in to comment.