1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Set a default icon for all eframe apps: a white e on black background (#2996)

As a user you can change this by setting `NativeOptions::icon_data`.
Set it to `None` to get the default icon assigned by the OS.
This commit is contained in:
Emil Ernerfeldt
2023-05-17 16:23:32 +02:00
committed by GitHub
parent 856afc8f7e
commit 7b76161a6a
5 changed files with 15 additions and 10 deletions

View File

@@ -22,11 +22,6 @@ 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,