1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05: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

@@ -702,7 +702,8 @@ mod glow_integration {
painter.max_texture_side(),
gl_window.window(),
system_theme,
self.native_options.follow_system_theme,
&self.app_name,
&self.native_options,
storage,
Some(gl.clone()),
#[cfg(feature = "wgpu")]
@@ -1166,7 +1167,8 @@ mod wgpu_integration {
painter.max_texture_side().unwrap_or(2048),
&window,
system_theme,
self.native_options.follow_system_theme,
&self.app_name,
&self.native_options,
storage,
#[cfg(feature = "glow")]
None,