refactor: use THEME for all colors, add theme fields, fix forge installer

This commit is contained in:
objz committed 2025-10-04 19:15:38 +02:00
1 parent eeb4333b94
commit d4ffcca61c
12 files changed
+139 -41

No files matched your search

+3 -3
View File
@@ -152,7 +152,7 @@ pub fn render(frame: &mut Frame, area: Rect, _focused: FocusedArea) {
let popup = PopupFrame {
title: wizard_title(&snapshot),
border_color: THEME.colors.border_focused,
bg: None,
bg: Some(THEME.colors.popup_bg),
keybinds: Some(keybinds),
search_line,
content: Box::new(move |popup_area, buf| {
@@ -511,7 +511,7 @@ fn render_version_step(state: &WizardState, area: Rect, buf: &mut ratatui::buffe
LoadState::Error(message) => {
Paragraph::new(message.as_str())
.wrap(Wrap { trim: true })
.style(Style::default().fg(ratatui::style::Color::Red))
.style(Style::default().fg(THEME.colors.error))
.render(area, buf);
}
LoadState::Loaded(_) => {
@@ -588,7 +588,7 @@ fn render_loader_version_step(
LoadState::Error(message) => {
Paragraph::new(message.as_str())
.wrap(Wrap { trim: true })
.style(Style::default().fg(ratatui::style::Color::Red))
.style(Style::default().fg(THEME.colors.error))
.render(area, buf);
}
LoadState::Loaded(versions) => {