fix(tui/onboarding): apply themed background to auth picker surface

- Render Block with theme background after Clear so it shows on all terminals.
- Aligns look of first onboarding screen (ChatGPT vs API key) with app theme.
This commit is contained in:
James Peter
2025-09-06 21:09:11 +10:00
parent 3e4a648ffb
commit ac994e878c
@@ -187,6 +187,11 @@ impl KeyboardHandler for OnboardingScreen {
impl WidgetRef for &OnboardingScreen {
fn render_ref(&self, area: Rect, buf: &mut Buffer) {
Clear.render(area, buf);
// Fill the onboarding surface with the themed background so the picker
// screen matches the active light/dark theme across terminals.
let bg = ratatui::widgets::Block::default()
.style(ratatui::style::Style::default().bg(crate::colors::background()));
bg.render(area, buf);
// Render steps top-to-bottom, measuring each step's height dynamically.
let mut y = area.y;
let bottom = area.y.saturating_add(area.height);