fn main() -> iced::Result {
let window = window::Settings {
..Default::default()
};
iced::application(YoutubeDownloader::title, YoutubeDownloader::update, YoutubeDownloader::view)
.window(window)
.window_size((900.0, 600.0))
.centered()
.exit_on_close_request(true)
.run_with(|| YoutubeDownloader::new(()))
}
What do I do here?
lufte
July 7, 2025, 1:39pm
2
Check the documentation for the window::Settings
struct.
Yes it contains the “Icon” struct, but the question is how do you compose an Icon. Reading the documentation at
there is:
pub struct Icon { /* private fields */ }
I’m not really sure what to do with this information, there’s nothing on the page about composing an Icon, only getting raw data from it
pml68
July 7, 2025, 5:48pm
4
Check the functions available here
Aha.. now I see, I didn’t have the feature activated, got a bit confused that the struct icon and module icon had the same name, thanks for the link @pml68