mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Use explicit epaint over paint alias (re-export)
egui reexports the `epaint` crate both under its original name and under the alias `paint` (for historical reasons)
This commit is contained in:
@@ -299,7 +299,7 @@ impl ColorTest {
|
||||
}
|
||||
|
||||
fn vertex_gradient(ui: &mut Ui, bg_fill: Color32, gradient: &Gradient) -> Response {
|
||||
use egui::paint::*;
|
||||
use egui::epaint::*;
|
||||
let (rect, response) = ui.allocate_at_least(GRADIENT_SIZE, Sense::hover());
|
||||
if bg_fill != Default::default() {
|
||||
let mut mesh = Mesh::default();
|
||||
|
||||
@@ -54,7 +54,7 @@ impl super::View for DancingStrings {
|
||||
.collect();
|
||||
|
||||
let thickness = 10.0 / mode;
|
||||
shapes.push(paint::Shape::line(
|
||||
shapes.push(epaint::Shape::line(
|
||||
points,
|
||||
Stroke::new(thickness, Color32::from_additive_luminance(196)),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user