Squash of 7 yoda commits forming the fork pivot: -255cf7ccrename: libcosmic -> libcosmic-yoda (fork 0.1.0-yoda) -8701aa31feat(yoda): Wayland-only cut — drop winit and x11 features -6736a596yoda: soft-fork pivot — keep Cargo name 'libcosmic' for dep unification -3e23d087yoda: re-apply hard rename — libcosmic -> libcosmic-yoda (0.1.0-yoda) -aec3eb61yoda: ungate remaining winit+wayland combined cfgs -8ab7b158yoda-v2: color_picker Theme ref + context_menu/menu ungate winit -8d1d8739yoda: drop x11 defaults on iced_winit + iced_tiny_skia
98 lines
2 KiB
Rust
98 lines
2 KiB
Rust
// Copyright 2022 System76 <info@system76.com>
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
#![allow(clippy::module_name_repetitions)]
|
|
#![cfg_attr(target_os = "redox", feature(lazy_cell))]
|
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
|
|
/// Recommended default imports.
|
|
pub mod prelude {
|
|
pub use crate::ApplicationExt;
|
|
pub use crate::ext::*;
|
|
pub use crate::{Also, Apply, Element, Renderer, Task, Theme};
|
|
}
|
|
|
|
pub use apply::{Also, Apply};
|
|
|
|
/// Actions are managed internally by the cosmic runtime.
|
|
pub mod action;
|
|
pub use action::Action;
|
|
|
|
pub mod anim;
|
|
|
|
pub mod app;
|
|
#[doc(inline)]
|
|
pub use app::{Application, ApplicationExt};
|
|
|
|
#[cfg(feature = "applet")]
|
|
pub mod applet;
|
|
|
|
pub mod command;
|
|
|
|
/// State which is managed by the cosmic runtime.
|
|
pub mod core;
|
|
#[doc(inline)]
|
|
pub use core::Core;
|
|
|
|
pub mod config;
|
|
|
|
#[doc(inline)]
|
|
pub use cosmic_config;
|
|
|
|
#[doc(inline)]
|
|
pub use cosmic_theme;
|
|
|
|
#[cfg(feature = "single-instance")]
|
|
pub mod dbus_activation;
|
|
#[cfg(feature = "single-instance")]
|
|
pub use dbus_activation::DbusActivation;
|
|
|
|
#[cfg(feature = "desktop")]
|
|
pub mod desktop;
|
|
|
|
#[cfg(any(feature = "xdg-portal", feature = "rfd"))]
|
|
pub mod dialog;
|
|
|
|
pub mod executor;
|
|
#[cfg(feature = "tokio")]
|
|
pub use executor::single::Executor as SingleThreadExecutor;
|
|
|
|
mod ext;
|
|
|
|
pub mod font;
|
|
|
|
#[doc(inline)]
|
|
pub use iced;
|
|
|
|
pub mod icon_theme;
|
|
pub mod keyboard_nav;
|
|
|
|
mod localize;
|
|
|
|
#[cfg(all(target_env = "gnu", not(target_os = "windows")))]
|
|
pub(crate) mod malloc;
|
|
|
|
#[cfg(all(feature = "process", not(windows)))]
|
|
pub mod process;
|
|
|
|
#[doc(inline)]
|
|
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
|
pub use cctk;
|
|
|
|
pub mod surface;
|
|
|
|
pub use iced::Task;
|
|
pub mod task;
|
|
|
|
pub mod theme;
|
|
|
|
pub mod scroll;
|
|
|
|
#[doc(inline)]
|
|
pub use theme::{Theme, style};
|
|
|
|
pub mod widget;
|
|
type Plain = iced_core::text::paragraph::Plain<<Renderer as iced_core::text::Renderer>::Paragraph>;
|
|
type Paragraph = <Renderer as iced_core::text::Renderer>::Paragraph;
|
|
pub type Renderer = iced::Renderer;
|
|
pub type Element<'a, Message> = iced::Element<'a, Message, crate::Theme, Renderer>;
|