Merge branch 'cosmic-design-system' into sctk-cosmic-design-system
This commit is contained in:
commit
9796fa9f15
34 changed files with 850 additions and 1360 deletions
17
src/lib.rs
17
src/lib.rs
|
|
@ -1,3 +1,6 @@
|
|||
// Copyright 2022 System76 <info@system76.com>
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
pub use iced;
|
||||
pub use iced_lazy;
|
||||
pub use iced_native;
|
||||
|
|
@ -11,19 +14,15 @@ pub mod font;
|
|||
pub mod theme;
|
||||
pub mod widget;
|
||||
|
||||
mod ext;
|
||||
pub use ext::ElementExt;
|
||||
|
||||
mod utils;
|
||||
|
||||
pub use theme::Theme;
|
||||
pub type Renderer = iced::Renderer<Theme>;
|
||||
pub type Element<'a, Message> = iced::Element<'a, Message, Renderer>;
|
||||
|
||||
#[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