mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-10-24 22:00:43 +08:00
18 lines
275 B
Rust
18 lines
275 B
Rust
pub mod format;
|
|
pub mod im;
|
|
pub mod items;
|
|
pub mod layout;
|
|
pub mod rm;
|
|
pub mod span;
|
|
|
|
#[derive(Clone, Debug)]
|
|
pub struct TerminalInfo {
|
|
pub luma: Option<f32>,
|
|
}
|
|
|
|
impl TerminalInfo {
|
|
pub fn is_dark(&self) -> bool {
|
|
self.luma.unwrap_or_default() <= 0.6
|
|
}
|
|
}
|