feat: Add HeaderBar widget

This commit is contained in:
Michael Aaron Murphy 2022-10-07 05:20:06 +02:00
parent daf4cb1eb8
commit b848931920
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 120 additions and 5 deletions

View file

@ -1,9 +1,19 @@
pub use iced;
pub use iced_lazy;
pub use iced_winit;
pub mod font;
pub mod widget;
#[derive(Clone, Copy, Debug)]
pub enum WindowMsg {
Close,
Drag,
Minimize,
Maximize,
ToggleSidebar,
}
pub fn settings<Flags: Default>() -> iced::Settings<Flags> {
let mut settings = iced::Settings::default();
settings.default_font = match font::FONT {