2022-12-06 16:12:59 +01:00
|
|
|
// Copyright 2022 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2022-09-30 09:35:55 -06:00
|
|
|
pub use iced;
|
2022-09-30 12:26:14 -06:00
|
|
|
pub use iced_lazy;
|
2022-10-18 10:07:32 -06:00
|
|
|
pub use iced_native;
|
|
|
|
|
pub use iced_style;
|
2022-11-15 23:11:48 +01:00
|
|
|
#[cfg(feature = "winit")]
|
2022-10-07 05:20:06 +02:00
|
|
|
pub use iced_winit;
|
2022-09-30 09:35:55 -06:00
|
|
|
|
2022-11-12 01:55:37 +01:00
|
|
|
#[cfg(feature = "applet")]
|
|
|
|
|
pub mod applet;
|
2022-09-30 09:35:55 -06:00
|
|
|
pub mod font;
|
2022-10-28 21:59:41 -07:00
|
|
|
pub mod theme;
|
2022-09-30 09:35:55 -06:00
|
|
|
pub mod widget;
|
|
|
|
|
|
2022-12-06 16:12:59 +01:00
|
|
|
mod ext;
|
|
|
|
|
pub use ext::ElementExt;
|
|
|
|
|
|
2022-10-28 21:59:41 -07:00
|
|
|
pub use theme::Theme;
|
|
|
|
|
pub type Renderer = iced::Renderer<Theme>;
|
|
|
|
|
pub type Element<'a, Message> = iced::Element<'a, Message, Renderer>;
|
|
|
|
|
|
2022-09-30 09:35:55 -06:00
|
|
|
pub fn settings<Flags: Default>() -> iced::Settings<Flags> {
|
|
|
|
|
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
|
|
|
|
|
}
|