Skip to content
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

Expose setting a Window Icon #453

Merged
merged 4 commits into from
May 22, 2024
Merged

Expose setting a Window Icon #453

merged 4 commits into from
May 22, 2024

Conversation

thewizzy
Copy link
Contributor

The ability to set a window icon is available in floem-winit but it isn't exposed through floem. This allows the floem dev to set a window icon as part of the window configuration.

There is an example included and it borrows heavily from the floem winit window_icon example - including the same icon file.

src/window.rs Outdated Show resolved Hide resolved
Based on discussion this is reasonable and makes most sense.
@panekj
Copy link
Collaborator

panekj commented May 22, 2024

It should be noted from where the icon comes from and what licence it is under or the icon should be replaced with one that doesn't require attribution/licence (for example Ferris could be used like in #116)

The original icon.png had unknown origins, prior to inclusion in winit.
Replaced with assets that were already in the repository and do not
require attribution per lapce#116 (comment)
@thewizzy
Copy link
Contributor Author

It should be noted from where the icon comes from and what licence it is under or the icon should be replaced with one that doesn't require attribution/licence (for example Ferris could be used like in #116)

Absolutely. I have updated it to use a copy of existing assets that you mentioned. Thank you.

@dzhou121 dzhou121 merged commit 716f3db into lapce:main May 22, 2024
7 checks passed
@thewizzy thewizzy deleted the window_icon branch May 22, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants