From 89ce8fcbf6f10b875744e480111b1ee1cfa6ec92 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 14:29:12 +0700 Subject: [PATCH] ui-widgets: a hexagon swatch picture's mesh takes the textures' UNTINTED tint, not a raw white (design-lint raw-colour/const) --- crates/ui-widgets/src/choice/swatch.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);