feat: Add HeaderBar widget
This commit is contained in:
parent
daf4cb1eb8
commit
b848931920
3 changed files with 120 additions and 5 deletions
10
src/lib.rs
10
src/lib.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue