Files
LLeMbas-TTY/window/src/os/parameters.rs
T

31 lines
697 B
Rust

use wezterm_color_types::LinearRgba;
use wezterm_font::parser::ParsedFont;
use crate::ULength;
pub type FontAndSize = (ParsedFont, f64);
#[derive(Default, Clone, Debug)]
pub struct TitleBar {
pub padding_left: ULength,
pub padding_right: ULength,
pub height: Option<ULength>,
pub font_and_size: Option<FontAndSize>,
}
#[derive(Default, Clone, Debug)]
pub struct Border {
pub top: ULength,
pub left: ULength,
pub bottom: ULength,
pub right: ULength,
pub color: LinearRgba,
}
#[derive(Default, Clone, Debug)]
pub struct Parameters {
pub title_bar: TitleBar,
/// If present, the application should draw it
pub border_dimensions: Option<Border>,
}