diff --git a/Cargo.lock b/Cargo.lock index 9141e81e..aea9d512 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -654,7 +654,7 @@ dependencies = [ [[package]] name = "egui_demo_lib" -version = "0.8.0" +version = "0.8.1" dependencies = [ "criterion", "egui", diff --git a/egui_demo_lib/Cargo.toml b/egui_demo_lib/Cargo.toml index d13364b1..89bac26d 100644 --- a/egui_demo_lib/Cargo.toml +++ b/egui_demo_lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "egui_demo_lib" -version = "0.8.0" +version = "0.8.1" authors = ["Emil Ernerfeldt "] description = "Example library for egui" edition = "2018" diff --git a/egui_demo_lib/src/apps/color_test.rs b/egui_demo_lib/src/apps/color_test.rs index 5a0a4166..6ff8fd6a 100644 --- a/egui_demo_lib/src/apps/color_test.rs +++ b/egui_demo_lib/src/apps/color_test.rs @@ -57,6 +57,10 @@ impl ColorTest { ui: &mut Ui, mut tex_allocator: &mut Option<&mut dyn epi::TextureAllocator>, ) { + ui.vertical_centered(|ui| { + ui.add(crate::__egui_github_link_file!()); + }); + ui.label("This is made to test that the egui painter backend is set up correctly, so that all colors are interpolated and blended in linear space with premultiplied alpha."); ui.label("If everything is set up correctly, all groups of gradients will look uniform"); diff --git a/egui_demo_lib/src/lib.rs b/egui_demo_lib/src/lib.rs index fa0e873e..ecd3abae 100644 --- a/egui_demo_lib/src/lib.rs +++ b/egui_demo_lib/src/lib.rs @@ -49,6 +49,7 @@ mod apps; pub(crate) mod frame_history; mod wrap_app; +pub use apps::ColorTest; // used for tests pub use apps::DemoWindows; // used for tests pub use wrap_app::WrapApp;