// Copyright 2022 System76 // SPDX-License-Identifier: MPL-2.0 pub use iced; pub use iced_lazy; pub use iced_native; pub use iced_style; #[cfg(feature = "winit")] pub use iced_winit; #[cfg(feature = "applet")] pub mod applet; pub mod font; pub mod theme; pub mod widget; mod ext; pub use ext::ElementExt; pub use theme::Theme; pub type Renderer = iced::Renderer; pub type Element<'a, Message> = iced::Element<'a, Message, Renderer>; pub fn settings() -> iced::Settings { let mut settings = iced::Settings::default(); settings.default_font = match font::FONT { iced::Font::Default => None, iced::Font::External { bytes, .. } => Some(bytes), }; settings.default_text_size = 18; settings }