Fixing color schemes
This commit is contained in:
@@ -6,18 +6,19 @@ use ratatui::Frame;
|
||||
use tui_big_text::{BigText, PixelSize};
|
||||
|
||||
use crate::state::ui::UiState;
|
||||
use crate::theme::title;
|
||||
use crate::theme;
|
||||
|
||||
pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
|
||||
let theme = theme::get();
|
||||
frame.render_widget(&ui.sparkles, area);
|
||||
|
||||
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 author_style = Style::new().fg(theme.title.author);
|
||||
let link_style = Style::new().fg(theme.title.link);
|
||||
let license_style = Style::new().fg(theme.title.license);
|
||||
|
||||
let big_title = BigText::builder()
|
||||
.pixel_size(PixelSize::Quadrant)
|
||||
.style(Style::new().fg(title::BIG_TITLE).bold())
|
||||
.style(Style::new().fg(theme.title.big_title).bold())
|
||||
.lines(vec!["CAGIRE".into()])
|
||||
.centered()
|
||||
.build();
|
||||
@@ -26,7 +27,7 @@ pub fn render(frame: &mut Frame, area: Rect, ui: &UiState) {
|
||||
Line::from(""),
|
||||
Line::from(Span::styled(
|
||||
"A Forth Music Sequencer",
|
||||
Style::new().fg(title::SUBTITLE),
|
||||
Style::new().fg(theme.title.subtitle),
|
||||
)),
|
||||
Line::from(""),
|
||||
Line::from(Span::styled("by BuboBubo", author_style)),
|
||||
@@ -38,7 +39,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(title::PROMPT),
|
||||
Style::new().fg(theme.title.prompt),
|
||||
)),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user