//! Custom Windows chrome. Other platforms keep their native window decorations; on macOS, //! `apply_appearance` repaints that chrome (the title bar) to match the chosen look. use crate::theme::Theme; use gpui::{Div, TitlebarOptions, Window}; use horizon_launcher::backend::Appearance; /// Whether the launcher draws its own title bar (`render`) rather than the system. pub const DRAWN: bool = cfg!(target_os = "windows"); pub fn options() -> TitlebarOptions { TitlebarOptions { title: Some("Horizon".into()), appears_transparent: DRAWN, ..Default::default() } } #[cfg(not(target_os = "windows"))] pub fn render(_theme: &Theme, _window: &Window) -> Option