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

eframe: Set app icon on Mac and Windows #2940

Merged
merged 5 commits into from
Apr 20, 2023
Merged

eframe: Set app icon on Mac and Windows #2940

merged 5 commits into from
Apr 20, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented Apr 20, 2023

NativeOptions::icon_data is now fully used on Mac and Windows to set the icon on alt-tab and in the doc/taskbar.

Also: correctly set window title on Mac when launching an eframe app from another process, e.g. python.

Most of the code is by @Wumpf, copied from https://github.com/rerun-io/rerun/blob/0a1d68681c72c9b9e49e5fb1b091425ad96fca32/crates/re_viewer/src/app_icon.rs

Ideally this should be ported to winit at some point

@emilk emilk added the eframe Relates to epi and eframe label Apr 20, 2023
Also: correctly set window title on Mac when launching from
another process, e.g. python.

Co-authored-by: Wumpf <andreas@rerun.io>
@emilk emilk merged commit 7f2de42 into master Apr 20, 2023
@emilk emilk deleted the emilk/set-app-icon branch April 20, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eframe Relates to epi and eframe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant