mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
de89f8cf83
Release Notes: - gpui: Add linear gradient support to fill background Run example: ``` cargo run -p gpui --example gradient cargo run -p gpui --example gradient --features macos-blade ``` ## Demo In GPUI (sRGB): <img width="761" alt="image" src="https://github.com/user-attachments/assets/568c02e8-3065-43c2-b5c2-5618d553dd6e"> In GPUI (Oklab): <img width="761" alt="image" src="https://github.com/user-attachments/assets/b008b0de-2705-4f99-831d-998ce48eed42"> In CSS (sRGB): https://codepen.io/huacnlee/pen/rNXgxBY <img width="505" alt="image" src="https://github.com/user-attachments/assets/239f4b65-24b3-4797-9491-a13eea420158"> In CSS (Oklab): https://codepen.io/huacnlee/pen/wBwBKOp <img width="658" alt="image" src="https://github.com/user-attachments/assets/56fdd55f-d219-45de-922f-7227f535b210"> --- Currently only support 2 color stops with linear-gradient. I think this is we first introduce the gradient feature in GPUI, and the linear-gradient is most popular for use. So we can just add this first and then to add more other supports. |
||
---|---|---|
.. | ||
app | ||
elements | ||
keymap | ||
platform | ||
text_system | ||
window | ||
action.rs | ||
app.rs | ||
arena.rs | ||
asset_cache.rs | ||
assets.rs | ||
bounds_tree.rs | ||
color.rs | ||
element.rs | ||
executor.rs | ||
geometry.rs | ||
global.rs | ||
gpui.rs | ||
input.rs | ||
interactive.rs | ||
key_dispatch.rs | ||
keymap.rs | ||
platform.rs | ||
prelude.rs | ||
scene.rs | ||
shared_string.rs | ||
shared_uri.rs | ||
style.rs | ||
styled.rs | ||
subscription.rs | ||
svg_renderer.rs | ||
taffy.rs | ||
test.rs | ||
text_system.rs | ||
util.rs | ||
view.rs | ||
window.rs |