We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a1dda commit 4bac620Copy full SHA for 4bac620
desktop/src/native_window.rs
@@ -39,8 +39,17 @@ impl NativeWindowHandle {
39
} else {
40
let x11_window = WindowAttributesX11::default().with_name(APP_ID, APP_NAME);
41
window.with_platform_attributes(Box::new(x11_window))
42
+ };
43
+ }
44
+
45
+ #[cfg(target_os = "windows")]
46
+ {
47
+ if let Ok(win_icon) = winit::platform::windows::WinIcon::from_resource(1, None) {
48
+ let icon = winit::icon::Icon(std::sync::Arc::new(win_icon));
49
+ window = window.with_window_icon(Some(icon));
50
}
51
52
53
window
54
55
#[allow(unused_variables)]
0 commit comments