mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-01 01:10:51 +08:00
16 lines
245 B
Rust
16 lines
245 B
Rust
pub mod format;
|
|
pub mod im;
|
|
pub mod items;
|
|
pub mod rm;
|
|
|
|
#[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
|
|
}
|
|
}
|