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

Tiny demo tweaks

This commit is contained in:
Emil Ernerfeldt
2021-08-26 18:54:38 +02:00
parent 693426d9c6
commit 7e9c3291bd
3 changed files with 9 additions and 7 deletions

View File

@@ -37,8 +37,7 @@ impl epi::App for ColorTest {
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
egui::CentralPanel::default().show(ctx, |ui| {
if frame.is_web() {
ui.colored_label(
RED,
ui.label(
"NOTE: The WebGL1 backend without sRGB support does NOT pass the color test.",
);
ui.separator();

View File

@@ -116,10 +116,13 @@ impl super::Demo for ManualLayoutTest {
}
fn show(&mut self, ctx: &egui::CtxRef, open: &mut bool) {
egui::Window::new(self.name()).open(open).show(ctx, |ui| {
use super::View;
self.ui(ui);
});
egui::Window::new(self.name())
.resizable(false)
.open(open)
.show(ctx, |ui| {
use super::View;
self.ui(ui);
});
}
}