diff --git a/crates/ui-widgets/src/choice/swatch.rs b/crates/ui-widgets/src/choice/swatch.rs index b0ce67e01..3cea91ac6 100644 --- a/crates/ui-widgets/src/choice/swatch.rs +++ b/crates/ui-widgets/src/choice/swatch.rs @@ -8,6 +8,7 @@ use crate::contract::{ Access, Activation, Common, Component, Cx, DisabledLook, GroupHandle, MeasureCx, Meta as _, Outcome, PaintUi, Pointer as _, Props as _, Role, Sizing, Styled as _, WordSetCx as _, }; +use crate::primitives::textures::UNTINTED; use crate::primitives::{Checker, ContentPainterCx, DataWidth, Draw, FacePaint, PaintShape, StrokeWidth, TextureCache}; use crate::runtime::focus::FocusShape; use crate::runtime::requests::ColorRequest; @@ -618,7 +619,7 @@ impl Face<'_> { let mut mesh = Mesh::with_texture(texture); for &pos in &corners { let at = (pos - well.min) / well.size(); - mesh.vertices.push(egui::epaint::Vertex { pos, uv: uv.lerp_inside(at), color: Color32::WHITE }); + mesh.vertices.push(egui::epaint::Vertex { pos, uv: uv.lerp_inside(at), color: UNTINTED }); } for k in 1..corners.len() as u32 - 1 { mesh.add_triangle(0, k, k + 1);