remove backfround fill
All checks were successful
Deploy to VPS / deploy (push) Successful in 1m0s

This commit is contained in:
2025-11-06 21:56:35 +01:00
parent aeabcb3ddb
commit fee61c023b
2 changed files with 7 additions and 8 deletions

View File

@@ -12,11 +12,10 @@ use std::io::stdout;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
enable_raw_mode()?; enable_raw_mode()?;
let (mut width, mut height) = crossterm::terminal::size()?; let (width, height) = match crossterm::terminal::size() {
if width == 0 || height == 0 { Ok((w, h)) if w > 0 && h > 0 => (w, h),
width = 80; _ => (80, 24),
height = 24; };
}
println!("Width: {}, Height: {}", width, height); println!("Width: {}, Height: {}", width, height);
let use_alternate_screen = let use_alternate_screen =
std::env::var("SSH_CLIENT").is_err() && std::env::var("SSH_TTY").is_err(); std::env::var("SSH_CLIENT").is_err() && std::env::var("SSH_TTY").is_err();

View File

@@ -9,8 +9,8 @@ use ratatui::{
use crate::app::App; use crate::app::App;
pub fn draw(f: &mut Frame, app: &App, blink: bool) { pub fn draw(f: &mut Frame, app: &App, blink: bool) {
let bg_block = Block::default().style(Style::default().bg(app.theme.bg)); // let bg_block = Block::default().style(Style::default().bg(app.theme.bg));
f.render_widget(bg_block, f.size()); // f.render_widget(bg_block, f.size());
if app.show_welcome { if app.show_welcome {
let fg = app.theme.fg; let fg = app.theme.fg;
@@ -102,7 +102,7 @@ pub fn draw(f: &mut Frame, app: &App, blink: bool) {
} }
let help_text = Paragraph::new("Use hjkl or arrows to navigate, ? for help, q to quit") let help_text = Paragraph::new("Use hjkl or arrows to navigate, ? for help, q to quit")
.style(Style::default().fg(app.theme.fg).bg(app.theme.bg)); .style(Style::default().fg(app.theme.fg));
f.render_widget(help_text, chunks[1]); f.render_widget(help_text, chunks[1]);
} }
} }