handle * ip, ui refac, fix #1 to handle .conf
Some checks failed
/ Quality Check (push) Failing after 1m5s
/ Build (push) Successful in 1m7s

This commit is contained in:
Phani Pavan K
2025-10-26 11:45:08 +05:30
parent 9314e97c60
commit f83d6038c8
7 changed files with 158 additions and 124 deletions

25
src/ui/exitPrompt.rs Normal file
View File

@@ -0,0 +1,25 @@
use ratatui::{
style::{Color, Style},
text::{Line, Text},
widgets::{Block, Borders, Paragraph, Wrap},
};
pub fn getExitPara() -> Paragraph<'static> {
let exitPopup = Block::default()
.title("Exit Window")
.borders(Borders::ALL)
.style(Style::default().bg(Color::DarkGray))
.border_style(Style::default().fg(Color::Red));
let exitText = Text::from(vec![
Line::from("Exit the app?"),
Line::from("ANY UNSAVED CHANGES WILL BE DISCARDED."),
Line::from("Press (s) to save from the main screen."),
]);
let exitPara = Paragraph::new(exitText)
.block(exitPopup)
.wrap(Wrap { trim: false })
.style(Style::default().fg(Color::White));
exitPara
}