Sonora's fork of GPUI, the GPU-accelerated UI framework behind Zed. Everything below works on wgpu, Metal and DirectX.
-
Shapes and shadows
Styled::corner_smoothingandStyled::squirclefor squircle cornersStyled::text_shadowfor CSS-style text shadows- Box shadows clipped to outside their element
-
Blur and layers
Styled::blurblurs an element and its subtree as a layerStyled::backdrop_blur, like CSSbackdrop-filter: blur()Styled::fade_edgesandStyled::fade_sidesfade a layer at its edges- Dual Kawase blur, with a Gaussian for small radii
- Neighbouring layers with the same filter merge into one pass
GPUI_FILTERS=0turns layer filters off
-
Paint-only transforms
Styled::layer_scaleandStyled::layer_scale_originStyled::layer_translate, which leaves layout and hitboxes alone- Fractional values for smooth spring animations
-
Pixel snapping
Window::with_pixel_snappingkeeps a subtree off the pixel grid
-
Text
- Requested font weights honoured in cosmic-text
- Variable-font
wghtaxis - Weight-aware font fallback
- Colour emoji detection and rendering
- ClearType text inside layers on Windows and wgpu
-
Memory
- Offscreen targets allocated on first use and freed when idle
- Instance buffers shrink after a quiet period on wgpu and Metal
- Atlas tiles written straight to the wgpu queue
-
App and windows
App::hide_cursorhides the cursor until the mouse moves- Window controls keep their hitboxes in cached views
- Explicitly sized images keep their size
- Wayland edges kept off half device pixels, and better fractional scaling
-
Profiling and debugging
GPUI_DEBUG_OVERLAY=minimal|fullfor frame timings and view statisticsGPUI_SHOW_REPAINTS=1highlights what each frame redrawsGPUI_LOG_NOTIFIES=1logs notifies and re-renders
Apache-2.0, inherited from Zed. See LICENSE-APACHE.