ui-widgets: a hexagon swatch picture's mesh takes the textures' UNTINTED tint, not a raw white (design-lint raw-colour/const)

This commit is contained in:
bflatastic
2026-11-23 14:29:12 +07:00
parent aa46fe4bbc
commit 89ce8fcbf6
+2 -1
View File
@@ -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);