1
0
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:
Emil Ernerfeldt
2023-04-20 15:47:04 +02:00
committed by GitHub
parent 834e2e9f50
commit 7f2de426d2
10 changed files with 363 additions and 21 deletions

View File

@@ -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,