components are redesigned

This commit is contained in:
filipriec
2025-03-22 15:45:55 +01:00
parent fabe1e0ca7
commit ccd76eabdd
8 changed files with 14 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
// src/components/handlers/background.rs
use ratatui::{
widgets::{Block},
layout::Rect,
style::Style,
Frame,
};
use crate::config::colors::Theme;
pub fn render_background(f: &mut Frame, area: Rect, theme: &Theme) {
let background = Block::default()
.style(Style::default().bg(theme.bg));
f.render_widget(background, area);
}