mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
Checkpoint
This commit is contained in:
parent
b516ea2fe2
commit
a7803570dc
2 changed files with 7 additions and 2 deletions
|
@ -91,7 +91,7 @@ fragment float4 quad_fragment(
|
||||||
color = float4(premultiplied_output_rgb, output_alpha);
|
color = float4(premultiplied_output_rgb, output_alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
return color;
|
return color * float4(1., 1., 1., saturate(0.5 - distance));
|
||||||
}
|
}
|
||||||
|
|
||||||
float4 hsla_to_rgba(Hsla hsla) {
|
float4 hsla_to_rgba(Hsla hsla) {
|
||||||
|
|
|
@ -1363,7 +1363,12 @@ extern "C" fn display_layer(this: &Object, _: Sel, _: id) {
|
||||||
clip_corner_radii: Default::default(),
|
clip_corner_radii: Default::default(),
|
||||||
background: crate::rgb(0x00ff00).into(),
|
background: crate::rgb(0x00ff00).into(),
|
||||||
border_color: Default::default(),
|
border_color: Default::default(),
|
||||||
corner_radii: Default::default(),
|
corner_radii: crate::Corners {
|
||||||
|
top_left: px(9.),
|
||||||
|
top_right: px(3.),
|
||||||
|
bottom_right: px(20.),
|
||||||
|
bottom_left: px(50.),
|
||||||
|
},
|
||||||
border_widths: Default::default(),
|
border_widths: Default::default(),
|
||||||
});
|
});
|
||||||
scene.insert(crate::Quad {
|
scene.insert(crate::Quad {
|
||||||
|
|
Loading…
Reference in a new issue