From a7803570dc4eda8a8bf4af5542b1f354a903e372 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Sat, 23 Sep 2023 17:26:22 -0600 Subject: [PATCH] Checkpoint --- crates/gpui3/src/platform/mac/shaders.metal | 2 +- crates/gpui3/src/platform/mac/window.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/gpui3/src/platform/mac/shaders.metal b/crates/gpui3/src/platform/mac/shaders.metal index f0d9c3ab02..9f9644a20e 100644 --- a/crates/gpui3/src/platform/mac/shaders.metal +++ b/crates/gpui3/src/platform/mac/shaders.metal @@ -91,7 +91,7 @@ fragment float4 quad_fragment( 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) { diff --git a/crates/gpui3/src/platform/mac/window.rs b/crates/gpui3/src/platform/mac/window.rs index 3c14129f03..d62d724e2c 100644 --- a/crates/gpui3/src/platform/mac/window.rs +++ b/crates/gpui3/src/platform/mac/window.rs @@ -1363,7 +1363,12 @@ extern "C" fn display_layer(this: &Object, _: Sel, _: id) { clip_corner_radii: Default::default(), background: crate::rgb(0x00ff00).into(), 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(), }); scene.insert(crate::Quad {