Egui Image For A Title #4503
Unanswered
lycheeje11y
asked this question in
Q&A
Replies: 1 comment
-
You can't use an image as the window title, but you can set the icon that will appear next to the title and in the toolbar (depending on the OS): let icon =
eframe::icon_data::from_png_bytes(include_bytes!("../../../crates/egui/assets/ferris.png"))
.unwrap();
let options = eframe::NativeOptions {
viewport: egui::ViewportBuilder::default().with_icon(icon),
..Default::default()
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I have use an image in the title of an app? I tried this code:
Beta Was this translation helpful? Give feedback.
All reactions