fix: move about struct
This commit is contained in:
parent
c5629aa7fa
commit
257925ae13
4 changed files with 13 additions and 8 deletions
|
|
@ -40,6 +40,7 @@ desktop = [
|
||||||
"process",
|
"process",
|
||||||
"dep:freedesktop-desktop-entry",
|
"dep:freedesktop-desktop-entry",
|
||||||
"dep:mime",
|
"dep:mime",
|
||||||
|
"dep:open",
|
||||||
"dep:shlex",
|
"dep:shlex",
|
||||||
"tokio?/io-util",
|
"tokio?/io-util",
|
||||||
"tokio?/net",
|
"tokio?/net",
|
||||||
|
|
@ -97,7 +98,7 @@ image = { version = "0.25.1", optional = true }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
libc = { version = "0.2.155", optional = true }
|
libc = { version = "0.2.155", optional = true }
|
||||||
mime = { version = "0.3.17", optional = true }
|
mime = { version = "0.3.17", optional = true }
|
||||||
open = "5.3.0"
|
open = { version = "5.3.0", optional = true }
|
||||||
palette = "0.7.3"
|
palette = "0.7.3"
|
||||||
rfd = { version = "0.14.0", optional = true }
|
rfd = { version = "0.14.0", optional = true }
|
||||||
rustix = { version = "0.38.34", features = [
|
rustix = { version = "0.38.34", features = [
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
//! Check out our [application](https://github.com/pop-os/libcosmic/tree/master/examples/application)
|
//! Check out our [application](https://github.com/pop-os/libcosmic/tree/master/examples/application)
|
||||||
//! example in our repository.
|
//! example in our repository.
|
||||||
|
|
||||||
|
#[cfg(feature = "desktop")]
|
||||||
|
pub mod about;
|
||||||
|
|
||||||
pub mod command;
|
pub mod command;
|
||||||
mod core;
|
mod core;
|
||||||
pub mod cosmic;
|
pub mod cosmic;
|
||||||
|
|
@ -52,14 +55,13 @@ use std::borrow::Cow;
|
||||||
pub use self::command::Task;
|
pub use self::command::Task;
|
||||||
pub use self::core::Core;
|
pub use self::core::Core;
|
||||||
pub use self::settings::Settings;
|
pub use self::settings::Settings;
|
||||||
|
use crate::prelude::*;
|
||||||
use crate::theme::THEME;
|
use crate::theme::THEME;
|
||||||
use crate::widget::{
|
use crate::widget::{
|
||||||
container, context_drawer, horizontal_space, id_container, menu, nav_bar, popover,
|
container, context_drawer, horizontal_space, id_container, menu, nav_bar, popover,
|
||||||
};
|
};
|
||||||
use crate::{prelude::*, widget};
|
|
||||||
use apply::Apply;
|
use apply::Apply;
|
||||||
use iced::alignment::Vertical;
|
use iced::window;
|
||||||
use iced::{window, Alignment};
|
|
||||||
use iced::{Length, Subscription};
|
use iced::{Length, Subscription};
|
||||||
pub use message::Message;
|
pub use message::Message;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
@ -73,7 +75,12 @@ use {
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "desktop")]
|
#[cfg(feature = "desktop")]
|
||||||
use {crate::widget::About, std::collections::BTreeMap};
|
use {
|
||||||
|
crate::app::about::About,
|
||||||
|
crate::widget,
|
||||||
|
iced::{alignment::Vertical, Alignment},
|
||||||
|
std::collections::BTreeMap,
|
||||||
|
};
|
||||||
|
|
||||||
pub(crate) fn iced_settings<App: Application>(
|
pub(crate) fn iced_settings<App: Application>(
|
||||||
settings: Settings,
|
settings: Settings,
|
||||||
|
|
|
||||||
|
|
@ -361,6 +361,3 @@ pub mod tooltip {
|
||||||
pub mod warning;
|
pub mod warning;
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use warning::*;
|
pub use warning::*;
|
||||||
|
|
||||||
pub mod about;
|
|
||||||
pub use about::*;
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue