Commit 20710da
committed
Use custom application icon on Windows, if present.
On Windows, if the executable contains an icon resource with id 1,
this icon will be used in the Taskbar and in the titlebar of Druid windows.
If there is no such icon resource, the default application icon IDI_APPLICATION
will be used (as before this change).
Adding a custom icon: one way is to use the [winres crate](https://crates.io/crates/winres)
and follow the guide in its README; `winres::WindowsResource::set_icon()` adds
an icon with id 1.
Non-Windows back-ends are not modified.1 parent 7c08b32 commit 20710da
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments