centered form
This commit is contained in:
@@ -4,9 +4,11 @@ pub mod command_line;
|
||||
pub mod status_line;
|
||||
pub mod canvas;
|
||||
pub mod sidebar;
|
||||
pub mod background;
|
||||
|
||||
pub use command_line::render_command_line;
|
||||
pub use form::*;
|
||||
pub use status_line::render_status_line;
|
||||
pub use canvas::*;
|
||||
pub use sidebar::*;
|
||||
pub use background::*;
|
||||
|
||||
15
client/src/components/handlers/background.rs
Normal file
15
client/src/components/handlers/background.rs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user