mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user