diff --git a/Cargo.toml b/Cargo.toml index 132aac8c..017d84d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ default = ["multi-window", "a11y"] # Accessibility support a11y = ["iced/a11y", "iced_accessibility"] # Enable about widget -about = ["desktop", "dep:license"] +about = ["dep:license"] # Builds support for animated images animated-image = ["dep:async-fs", "image/gif", "tokio?/io-util", "tokio?/fs"] # XXX autosize should not be used on winit windows unless dialogs diff --git a/src/widget/about.rs b/src/widget/about.rs index 47a9baa1..6590bb9d 100644 --- a/src/widget/about.rs +++ b/src/widget/about.rs @@ -1,7 +1,6 @@ use { crate::{ Element, - desktop::{IconSourceExt, fde}, iced::{Alignment, Length}, widget::{self, horizontal_space}, }, @@ -15,7 +14,7 @@ pub struct About { /// The application's name. name: Option, /// The application's icon name. - icon: Option, + icon: Option, /// The application's version. version: Option, /// Name of the application's author. @@ -138,10 +137,7 @@ pub fn about<'a, Message: Clone + 'static>( }; let application_name = about.name.as_ref().map(widget::text::title3); - let application_icon = about - .icon - .as_ref() - .map(|icon| fde::IconSource::Name(icon.clone()).as_cosmic_icon()); + let application_icon = about.icon.as_ref().map(|i| i.clone().icon()); let author = about.author.as_ref().map(widget::text::body); let version = about.version.as_ref().map(widget::button::standard); let links_section = section(&about.links, "Links");