Unofficial Android fork. This repository is a community fork of sonorahq/gpui, Sonora's GPUI fork, that adds the experimental gpui_android backend. It is not affiliated with or endorsed by SonoraHQ or Zed Industries. Upstream changes are merged on a best-effort basis, so this fork may lag behind, diverge from, or break relative to upstream. For the official project, use upstream.
  • Rust 96.5%
  • WGSL 1.3%
  • Metal 0.9%
  • HLSL 0.9%
  • Kotlin 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sophie 816b8e7102 Merge upstream/master
Brings in the upstream text shaping, styling, shader, and platform updates. Keeps the fork's README notice and Android backend; upstream workflow files that arrived with the merge are removed again so the fork stays workflow-free.
2026-11-15 20:47:13 +02:00
.github Merge upstream/master 2026-11-15 20:47:13 +02:00
assets/fonts chore: build the examples and tests standalone 2026-08-23 00:50:12 +02:00
crates Merge upstream/master 2026-11-15 20:47:13 +02:00
tooling/perf chore: fix the remaining broken license symlinks 2026-11-10 20:28:35 +01:00
.gitignore chore: extract gpui from the zed workspace 2026-08-15 15:10:04 +02:00
Cargo.lock feat(android): add the gpui_android platform backend 2026-11-15 20:13:06 +02:00
Cargo.toml feat(android): add the gpui_android platform backend 2026-11-15 20:13:06 +02:00
LICENSE chore: move the zed notice out of the license file 2026-11-03 10:34:21 +01:00
NOTICE chore: move the zed notice out of the license file 2026-11-03 10:34:21 +01:00
README.md Merge upstream/master 2026-11-15 20:47:13 +02:00
rust-toolchain.toml chore: vendor the gpui subset of zed@56934ec 2026-10-18 15:45:11 +02:00

Warning

Unofficial Android fork. This repository is a community fork of sonorahq/gpui, Sonora's GPUI fork, that adds the experimental gpui_android backend. It is not affiliated with or endorsed by SonoraHQ or Zed Industries. Upstream changes are merged on a best-effort basis, so this fork may lag behind, diverge from, or break relative to upstream. For the official project, use upstream.

gpui

Sonora's fork of GPUI, the GPU-accelerated UI framework behind Zed. Everything below works on wgpu, Metal and DirectX.

What the fork adds

  • Shapes and shadows

    • Styled::corner_smoothing and Styled::squircle for squircle corners
    • Styled::text_shadow for CSS-style text shadows
    • Box shadows clipped to outside their element
  • Blur and layers

    • Styled::blur blurs an element and its subtree as a layer
    • Styled::backdrop_blur, like CSS backdrop-filter: blur()
    • Styled::fade_edges and Styled::fade_sides fade 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=0 turns layer filters off
  • Paint-only transforms

    • Styled::layer_scale and Styled::layer_scale_origin
    • Styled::layer_translate, which leaves layout and hitboxes alone
    • Fractional values for smooth spring animations
  • Pixel snapping

    • Window::with_pixel_snapping keeps a subtree off the pixel grid
  • Text

    • Styled::letter_spacing, like CSS letter-spacing, in ems
    • Requested font weights honoured in cosmic-text
    • Variable-font wght axis
    • 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_cursor hides 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|full for frame timings and view statistics
    • GPUI_SHOW_REPAINTS=1 highlights what each frame redraws
    • GPUI_LOG_NOTIFIES=1 logs notifies and re-renders

Licence

Apache-2.0, inherited from Zed. See LICENSE and NOTICE.