zed/crates/gpui
Antonio Scandurra 3ab2062614 Fix border rendering
After implementing it a while ago, our previous interpolation scheme
didn't really make sense to me and was causing borders to be rendered
incorrectly. We don't really draw backgrounds and borders as part of
the same draw call anymore, but it seemed reasonable to have a correct
implementation in the shader anyway.

This commit uses Porter-Duff compositing (i.e., `over`) to produce
a color that is the result of superimposing the border on top of the
background. Then, we linearly interpolate towards the background color
as we slide out of the border and into the background.
2024-01-04 16:27:20 +01:00
..
docs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
src Fix border rendering 2024-01-04 16:27:20 +01:00
tests Remove 2 suffix from gpui_macros, fix compile errors in tests 2024-01-03 13:12:21 -08:00
build.rs Remove 2 suffix from gpui 2024-01-03 12:59:39 -08:00
Cargo.toml Remove 2 suffix from gpui_macros, fix compile errors in tests 2024-01-03 13:12:21 -08:00