fix: draw color picker handle on top of gradient

This commit is contained in:
Ashley Wulber 2024-07-17 16:21:11 -04:00 committed by Michael Murphy
parent cfa1adaf46
commit 47dedfde74

View file

@ -606,6 +606,14 @@ where
(1.0 - self.active_color.value).mul_add(bounds.height, bounds.position().y) (1.0 - self.active_color.value).mul_add(bounds.height, bounds.position().y)
- handle_radius, - handle_radius,
); );
renderer.with_layer(
Rectangle {
x,
y,
width: handle_radius.mul_add(2.0, 1.0),
height: handle_radius.mul_add(2.0, 1.0),
},
|renderer| {
renderer.fill_quad( renderer.fill_quad(
Quad { Quad {
bounds: Rectangle { bounds: Rectangle {
@ -640,6 +648,8 @@ where
}, },
Color::TRANSPARENT, Color::TRANSPARENT,
); );
},
);
} }
fn overlay<'b>( fn overlay<'b>(