mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
eframe: Set app icon on Mac and Windows (#2940)
* eframe: Set app icon on Mac and Windows Also: correctly set window title on Mac when launching from another process, e.g. python. Co-authored-by: Wumpf <andreas@rerun.io> * lint fixes * Fix web build * fix typo * Try fix windows build --------- Co-authored-by: Wumpf <andreas@rerun.io>
This commit is contained in:
@@ -22,6 +22,11 @@ fn main() -> Result<(), eframe::Error> {
|
||||
|
||||
initial_window_size: Some([1280.0, 1024.0].into()),
|
||||
|
||||
icon_data: Some(
|
||||
eframe::IconData::try_from_png_bytes(&include_bytes!("../../../media/icon.png")[..])
|
||||
.unwrap(),
|
||||
),
|
||||
|
||||
#[cfg(feature = "wgpu")]
|
||||
renderer: eframe::Renderer::Wgpu,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user