Tiny demo tweaks
This commit is contained in:
parent
693426d9c6
commit
7e9c3291bd
3 changed files with 9 additions and 7 deletions
|
@ -137,7 +137,7 @@ impl Widget for &mut epaint::TessellationOptions {
|
||||||
ui.collapsing("debug", |ui| {
|
ui.collapsing("debug", |ui| {
|
||||||
ui.checkbox(
|
ui.checkbox(
|
||||||
coarse_tessellation_culling,
|
coarse_tessellation_culling,
|
||||||
"Do coarse culling in the tessellator)",
|
"Do coarse culling in the tessellator",
|
||||||
);
|
);
|
||||||
ui.checkbox(debug_ignore_clip_rects, "Ignore clip rectangles");
|
ui.checkbox(debug_ignore_clip_rects, "Ignore clip rectangles");
|
||||||
ui.checkbox(debug_paint_clip_rects, "Paint clip rectangles");
|
ui.checkbox(debug_paint_clip_rects, "Paint clip rectangles");
|
||||||
|
|
|
@ -37,8 +37,7 @@ impl epi::App for ColorTest {
|
||||||
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
|
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
|
||||||
egui::CentralPanel::default().show(ctx, |ui| {
|
egui::CentralPanel::default().show(ctx, |ui| {
|
||||||
if frame.is_web() {
|
if frame.is_web() {
|
||||||
ui.colored_label(
|
ui.label(
|
||||||
RED,
|
|
||||||
"NOTE: The WebGL1 backend without sRGB support does NOT pass the color test.",
|
"NOTE: The WebGL1 backend without sRGB support does NOT pass the color test.",
|
||||||
);
|
);
|
||||||
ui.separator();
|
ui.separator();
|
||||||
|
|
|
@ -116,7 +116,10 @@ impl super::Demo for ManualLayoutTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn show(&mut self, ctx: &egui::CtxRef, open: &mut bool) {
|
fn show(&mut self, ctx: &egui::CtxRef, open: &mut bool) {
|
||||||
egui::Window::new(self.name()).open(open).show(ctx, |ui| {
|
egui::Window::new(self.name())
|
||||||
|
.resizable(false)
|
||||||
|
.open(open)
|
||||||
|
.show(ctx, |ui| {
|
||||||
use super::View;
|
use super::View;
|
||||||
self.ui(ui);
|
self.ui(ui);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue