New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the window icon #69
Comments
Hi! |
Perhaps the best way to handle it would be a feature flag that uses a crate like image and abstracts the icon assignment for whatever window manager you're using. Of course, anything that requires an external image file would require saving to the file at runtime or a |
I'd probably make some sort of system that just takes a simple RGBA bitmap in the form of a |
It's too fiddly to make Windows also take ARGB or something like that? (I
don't know much about Windows.)
…On Thu, Apr 26, 2018, 22:17 Francesca Frangipane ***@***.***> wrote:
I plan on using WindowBuilderExt and WindowExt for this, since 1) it only
seems relevant on Windows and X11, and 2) X11 wants ARGB while Windows
wants paths (and is picky about what it accepts).
[image: window-icon]
<https://user-images.githubusercontent.com/2096580/39340530-a2e0de82-499c-11e8-8bfb-3d06a1e25f03.png>
Implementing this on X11 will most likely be trivial.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#69 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABRfXUJlVyl8BlGwpuQnovpMI4sdWH1pks5tsn_TgaJpZM4KoFdd>
.
|
To be honest, my main rationale was that the docs for So, now I can provide a consistent API that expects RGBA. I'll also include an example program that demonstrates how to use |
PR is up: #497 |
Partially addresses rust-windowing#69.
Original: rust-windowing/glutin#771
The text was updated successfully, but these errors were encountered: