Monster commit: native version
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
use ratatui::layout::{Alignment, Constraint, Layout, Rect};
|
||||
use ratatui::style::{Color, Style, Stylize};
|
||||
use ratatui::style::Style;
|
||||
use ratatui::text::{Line, Span};
|
||||
use ratatui::widgets::Paragraph;
|
||||
use ratatui::Frame;
|
||||
use tui_big_text::{BigText, PixelSize};
|
||||
|
||||
use crate::state::ui::UiState;
|
||||
use crate::theme::title;
|
||||
|
||||
pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
|
||||
frame.render_widget(&ui.sparkles, area);
|
||||
|
||||
let author_style = Style::new().fg(Color::Rgb(180, 140, 200));
|
||||
let link_style = Style::new().fg(Color::Rgb(120, 200, 180));
|
||||
let license_style = Style::new().fg(Color::Rgb(200, 160, 100));
|
||||
let author_style = Style::new().fg(title::AUTHOR);
|
||||
let link_style = Style::new().fg(title::LINK);
|
||||
let license_style = Style::new().fg(title::LICENSE);
|
||||
|
||||
let big_title = BigText::builder()
|
||||
.pixel_size(PixelSize::Quadrant)
|
||||
.style(Style::new().cyan().bold())
|
||||
.style(Style::new().fg(title::BIG_TITLE).bold())
|
||||
.lines(vec!["CAGIRE".into()])
|
||||
.centered()
|
||||
.build();
|
||||
@@ -25,7 +26,7 @@ pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
|
||||
Line::from(""),
|
||||
Line::from(Span::styled(
|
||||
"A Forth Music Sequencer",
|
||||
Style::new().fg(Color::White),
|
||||
Style::new().fg(title::SUBTITLE),
|
||||
)),
|
||||
Line::from(""),
|
||||
Line::from(Span::styled("by BuboBubo", author_style)),
|
||||
@@ -37,7 +38,7 @@ pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
|
||||
Line::from(""),
|
||||
Line::from(Span::styled(
|
||||
"Press any key to continue",
|
||||
Style::new().fg(Color::Rgb(140, 160, 170)),
|
||||
Style::new().fg(title::PROMPT),
|
||||
)),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user