mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
egui_demo_lib 0.8.1: export ColorTest
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -654,7 +654,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "egui_demo_lib"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"egui",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "egui_demo_lib"
|
||||
version = "0.8.0"
|
||||
version = "0.8.1"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
description = "Example library for egui"
|
||||
edition = "2018"
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user