Integrate all the progress into master #6

Merged
jaby merged 595 commits from ToolBox into main 2025-01-01 13:17:44 +00:00
1 changed files with 23 additions and 9 deletions
Showing only changes of commit f89eb8eb7e - Show all commits

View File

@ -332,16 +332,30 @@ impl ConsoleUI {
}
fn render_list(frame: &mut ConsoleFrame, layout: Rect) {
let text = Paragraph::new("Comming soon")
.style(Style::default().fg(Color::White))
.alignment(Alignment::Center)
.block(Block::default()
.borders(Borders::ALL)
.style(Style::default().fg(Color::White))
.border_type(BorderType::Plain).title("QUIT")
);
let (info_layout, list_layout) = {
let layout = Layout::default().direction(Direction::Vertical).constraints([
Constraint::Min(5),
Constraint::Max(5),
]).split(layout);
frame.render_widget(text, layout);
(layout[1], Layout::default().direction(Direction::Horizontal).constraints([
Constraint::Percentage(50),
Constraint::Percentage(50)
]).split(layout[0]))
};
let text = Paragraph::new("Schwimmflügel")
.style(Style::default().fg(Color::White))
.alignment(Alignment::Center)
.block(Block::default()
.borders(Borders::ALL)
.style(Style::default().fg(Color::White))
.border_type(BorderType::Plain).title("Wuffi")
);
frame.render_widget(text.clone(), info_layout);
frame.render_widget(text.clone(), list_layout[0]);
frame.render_widget(text, list_layout[1]);
}
fn render_quit(frame: &mut ConsoleFrame, layout: Rect) {