.on_hover_text("The texture sampling should be sRGB-aware, and every other color operation should be done in gamma-space (sRGB). All colors should use pre-multiplied alpha");
.on_hover_text("The texture sampling should be sRGB-aware, and every other color operation should be done in gamma-space (sRGB). All colors should use pre-multiplied alpha");
});
});
ui.separator();
pixel_test(ui);
ui.separator();
ui.collapsing("Color test",|ui|{
self.color_test(ui);
});
ui.separator();
ui.heading("Text rendering");
text_on_bg(ui,Color32::from_gray(200),Color32::from_gray(230));// gray on gray
text_on_bg(ui,Color32::from_gray(140),Color32::from_gray(28));// dark mode normal text
/// A visual test that the rendering is correctly aligned on the physical pixel grid.
ui.label("Each subsequent square should be one physical pixel larger than the previous. They should be exactly one physical pixel apart. They should be perfectly aligned to the pixel grid.");
///
/// Requires eyes and a magnifying glass to verify.
pubfnpixel_test(ui: &mutUi){
ui.heading("Pixel alignment test");
ui.label("The first square should be exactly one physical pixel big.");
ui.label("They should be exactly one physical pixel apart.");
ui.label("Each subsequent square should be one physical pixel larger than the previous.");
ui.label("They should be perfectly aligned to the physical pixel grid.");
ui.label("If these squares are blurry, everything will be blurry, including text.");
ui.label("You might need a magnifying glass to check this test.");